当前位置:网站首页>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);
}
边栏推荐
- Embedded interview questions (algorithm part)
- App capture of charles+postern
- Do you really understand sticky bag and half bag? 3 minutes to understand it
- More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
- 通过 Play Integrity API 的 nonce 字段提高应用安全性
- idea彻底卸载安装及配置笔记
- CVPR 2022丨学习用于小样本语义分割的非目标知识
- sqlite sql 异常 near “with“: syntax error
- Redis的发布与订阅
- 将模型的记忆保存下来!Meta&UC Berkeley提出MeMViT,建模时间支持比现有模型长30倍,计算量仅增加4.5%...
猜你喜欢
随机推荐
[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
PIP related commands
Save the memory of the model! Meta & UC Berkeley proposed memvit. The modeling time support is 30 times longer than the existing model, and the calculation amount is only increased by 4.5%
Redis
嵌入式面试题(算法部分)
Differences between rip and OSPF and configuration commands
AntiSamy:防 XSS 攻击的一种解决方案使用教程
Using stored procedures, timers, triggers to solve data analysis problems
Learn open62541 -- [67] add custom enum and display name
3.关于cookie
Hash, bitmap and bloom filter for mass data De duplication
Skills of embedded C language program debugging and macro use
idea彻底卸载安装及配置笔记
Year SQL audit platform
String type, constant type and container type of go language
debian10编译安装mysql
Industry case | digital operation base helps the transformation of life insurance industry
现在网上期货开户安全吗?国内有多少家正规的期货公司?
gsap动画库
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现








