当前位置:网站首页>How many times is PTA 1101 B than a
How many times is PTA 1101 B than a
2022-07-07 18:56:00 【Deng sb's father】
1101 B yes A How many times
#include <iostream>
using namespace std;
int main()
{
string A;
int D;
cin>>A>>D;
long long int a=stoi(A);
string B;
for(int i=A.length()-D;i<A.length();i++)
B=B+A[i];
for(int i=0;i<A.length()-D;i++)
B=B+A[i];
B=B+'\0';
long long int b= stoi(B);
double c=b*1.0/a;
printf("%.2f",c);
}
边栏推荐
猜你喜欢
A few simple steps to teach you how to see the K-line diagram
RISCV64
AI defeated mankind and designed a better economic mechanism
Learn open62541 -- [67] add custom enum and display name
Differences between rip and OSPF and configuration commands
【C语言】字符串函数
String type, constant type and container type of go language
socket編程之常用api介紹與socket、select、poll、epoll高並發服務器模型代碼實現
Improve application security through nonce field of play integrity API
Summary of debian10 system problems
随机推荐
6.关于jwt
Debian10 compile and install MySQL
The highest level of anonymity in C language
數據驗證框架 Apache BVal 再使用
More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
五种网络IO模型
idea彻底卸载安装及配置笔记
嵌入式C语言程序调试和宏使用的技巧
What are the financial products in 2022? What are suitable for beginners?
[sword finger offer] 59 - I. maximum value of sliding window
线程池中的线程工厂
RISCV64
Rules for filling in volunteers for college entrance examination
Idea completely uninstalls installation and configuration notes
NAT地址转换
[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips
Redis
The performance and efficiency of the model that can do three segmentation tasks at the same time is better than maskformer! Meta & UIUC proposes a general segmentation model with better performance t
[Tawang methodology] Tawang 3W consumption strategy - U & a research method
PTA 1102 教超冠军卷