当前位置:网站首页>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);
}
边栏推荐
- 微信网页调试8.0.19换掉X5内核,改用xweb,所以x5调试方式已经不能用了,现在有了解决方案
- Charles+drony的APP抓包
- 行业案例|数字化经营底座助力寿险行业转型
- Yunjing network technology interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
- 面试唯品会实习测试岗、抖音实习测试岗【真实投稿】
- 磁盘存储链式的B树与B+树
- socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
- 【demo】循环队列及条件锁实现goroutine间的通信
- 低代码助力企业数字化转型会让程序员失业?
- 如何选择合适的自动化测试工具?
猜你喜欢
随机推荐
财富证券证券怎么开户?通过链接办理股票开户安全吗
Static routing configuration
你真的理解粘包与半包吗?3分钟搞懂它
Complete e-commerce system
Five network IO models
go语言的字符串类型、常量类型和容器类型
Thread pool and singleton mode and file operation
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
Redis publishing and subscription
【塔望方法论】塔望3W消费战略 - U&A研究法
Reinforcement learning - learning notes 8 | Q-learning
String type, constant type and container type of go language
Classification of regression tests
Calculation of torque target value (ftorque) in servo torque control mode
Performance test process and plan
“解密”华为机器视觉军团:华为向上,产业向前
[unity shader] insert pass to realize the X-ray perspective effect of model occlusion
[paper sharing] where's crypto?
Will domestic software testing be biased
数据验证框架 Apache BVal 再使用
![Learn open62541 -- [67] add custom enum and display name](/img/98/e5e25af90b3f98c2be11d7d21e5ea6.png)







