当前位置:网站首页>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);
}
边栏推荐
- Backup Alibaba cloud instance OSS browser
- Calculation of torque target value (ftorque) in servo torque control mode
- Standard ACL and extended ACL
- Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
- PTA 1101 B是A的多少倍
- 单臂路由和三层交换的简单配置
- 低代码助力企业数字化转型会让程序员失业?
- coming! Gaussdb (for Cassandra) new features appear
- Summary of evaluation indicators and important knowledge points of regression problems
- idea彻底卸载安装及配置笔记
猜你喜欢
清华、剑桥、UIC联合推出首个中文事实核查数据集:基于证据、涵盖医疗社会等多个领域
Skills of embedded C language program debugging and macro use
Download, installation and development environment construction of "harmonyos" deveco
How to clean when win11 C disk is full? Win11 method of cleaning C disk
Standard ACL and extended ACL
Complete e-commerce system
Disk storage chain B-tree and b+ tree
[Tawang methodology] Tawang 3W consumption strategy - U & a research method
Thread pool and singleton mode and file operation
Improve application security through nonce field of play integrity API
随机推荐
PIP related commands
Cloud security daily 220707: Cisco Expressway series and telepresence video communication server have found remote attack vulnerabilities and need to be upgraded as soon as possible
微信网页调试8.0.19换掉X5内核,改用xweb,所以x5调试方式已经不能用了,现在有了解决方案
单臂路由和三层交换的简单配置
Charles+Postern的APP抓包
pip相关命令
Wireshark分析抓包数据*.cap
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
Complete e-commerce system
嵌入式C语言程序调试和宏使用的技巧
Some key points in the analysis of spot Silver
低代码助力企业数字化转型会让程序员失业?
五种网络IO模型
行业案例|数字化经营底座助力寿险行业转型
财富证券证券怎么开户?通过链接办理股票开户安全吗
Idea completely uninstalls installation and configuration notes
Nat address translation
Nunjuks template engine
Disk storage chain B-tree and b+ tree
debian10编译安装mysql