当前位置:网站首页>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);
}
边栏推荐
- Charles+drony的APP抓包
- Sports Federation: resume offline sports events in a safe and orderly manner, and strive to do everything possible for domestic events
- Calculation of torque target value (ftorque) in servo torque control mode
- pip相关命令
- Wireshark分析抓包数据*.cap
- DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
- [unity shader] insert pass to realize the X-ray perspective effect of model occlusion
- nest.js入门之 database
- Is it safe to open an online futures account now? How many regular futures companies are there in China?
- 2022年理财产品的一般收益率是多少?
猜你喜欢
海量数据去重的hash,bitmap与布隆过滤器Bloom Filter
Some key points in the analysis of spot Silver
[unity shader] insert pass to realize the X-ray perspective effect of model occlusion
小程序中实现付款功能
数据验证框架 Apache BVal 再使用
静态路由配置
String type, constant type and container type of go language
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
[C language] string function
Wireshark analyzes packet capture data * cap
随机推荐
Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
完整的电商系统
PTA 1101 B是A的多少倍
卖空、加印、保库存,东方甄选居然一个月在抖音卖了266万单书
Antisamy: a solution against XSS attack tutorial
Redis
2022年理财产品的一般收益率是多少?
unity2d的Rigidbody2D的MovePosition函数移动时人物或屏幕抖动问题解决
Rules for filling in volunteers for college entrance examination
单臂路由和三层交换的简单配置
数据验证框架 Apache BVal 再使用
微信网页调试8.0.19换掉X5内核,改用xweb,所以x5调试方式已经不能用了,现在有了解决方案
Summary of evaluation indicators and important knowledge points of regression problems
DeSci:去中心化科学是Web3.0的新趋势?
Comparison and selection of kubernetes Devops CD Tools
Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
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
[论文分享] Where’s Crypto?