当前位置:网站首页>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);
}
边栏推荐
- Reject policy of thread pool
- 能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
- Redis的发布与订阅
- Five network IO models
- 【Unity Shader】插入Pass实现模型遮挡X光透视效果
- Interview vipshop internship testing post, Tiktok internship testing post [true submission]
- Will domestic software testing be biased
- 嵌入式C语言程序调试和宏使用的技巧
- [论文分享] Where’s Crypto?
- Redis集群与扩展
猜你喜欢
你真的理解粘包与半包吗?3分钟搞懂它
AI defeated mankind and designed a better economic mechanism
[software test] from the direct employment of the boss of the enterprise version, looking at the resume, there is a reason why you are not covered
How to clean when win11 C disk is full? Win11 method of cleaning C disk
Using stored procedures, timers, triggers to solve data analysis problems
五种网络IO模型
App capture of charles+postern
Year SQL audit platform
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
Hash, bitmap and bloom filter for mass data De duplication
随机推荐
云景网络科技面试题【杭州多测师】【杭州多测师_王sir】
Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
Debian10 compile and install MySQL
二叉树的基本概念和性质
數據驗證框架 Apache BVal 再使用
数据验证框架 Apache BVal 再使用
pip相关命令
App capture of charles+postern
Cadre de validation des données Apache bval réutilisé
线程池的拒绝策略
App capture of charles+drony
CVPR 2022 - learning non target knowledge for semantic segmentation of small samples
Yunjing network technology interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
2022-07-04 matlab读取视频帧并保存
Yearning-SQL审核平台
Thread pool and singleton mode and file operation
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
[sword finger offer] 59 - I. maximum value of sliding window
Reuse of data validation framework Apache bval
Backup Alibaba cloud instance OSS browser