当前位置:网站首页>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);
}
边栏推荐
- Nunjuks template engine
- 小试牛刀之NunJucks模板引擎
- Reinforcement learning - learning notes 8 | Q-learning
- Some key points in the analysis of spot Silver
- 【Unity Shader】插入Pass实现模型遮挡X光透视效果
- Redis
- Five network IO models
- Simple configuration of single arm routing and layer 3 switching
- DeSci:去中心化科学是Web3.0的新趋势?
- Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
猜你喜欢

6.关于jwt

3.关于cookie

Performance test process and plan

Do you really understand sticky bag and half bag? 3 minutes to understand it

CVPR 2022 - learning non target knowledge for semantic segmentation of small samples

小试牛刀之NunJucks模板引擎

Charles+Postern的APP抓包

Nunjuks template engine

嵌入式C语言程序调试和宏使用的技巧

【软件测试】从企业版BOSS直聘,看求职简历,你没被面上是有原因的
随机推荐
數據驗證框架 Apache BVal 再使用
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
Do you really understand sticky bag and half bag? 3 minutes to understand it
Reuse of data validation framework Apache bval
A few simple steps to teach you how to see the K-line diagram
idea彻底卸载安装及配置笔记
CVPR 2022丨学习用于小样本语义分割的非目标知识
持续测试(CT)实战经验分享
6.关于jwt
Redis集群与扩展
debian10系统问题总结
将模型的记忆保存下来!Meta&UC Berkeley提出MeMViT,建模时间支持比现有模型长30倍,计算量仅增加4.5%...
Industry case | digital operation base helps the transformation of life insurance industry
简单几步教你如何看k线图图解
AntiSamy:防 XSS 攻击的一种解决方案使用教程
Backup Alibaba cloud instance OSS browser
嵌入式面试题(算法部分)
Redis cluster and expansion
数据验证框架 Apache BVal 再使用
二叉树的基本概念和性质