【Codeforces Round #434 (Div. 2) A】k-rounding
【链接】h在这里写链接
【题意】
【题解】
【错的次数】
【反思】
【代码】
#include <bits/stdc++.h>
using namespace std; long long n, k;
long long temp; long long gcd(long long a, long long b) {
if (b == 0)
return a;
else
return gcd(b, a%b);
} int main() {
//freopen("F:\\rush.txt", "r", stdin);
ios::sync_with_stdio(0), cin.tie(0);
cin >> n >> k;
temp = 1;
for (int i = 1; i <= k; i++)
temp = temp * 10;
cout << n*temp / gcd(temp, n) << endl;
return 0;
}
【Codeforces Round #434 (Div. 2) A】k-rounding的更多相关文章
- 【Codeforces Round #434 (Div. 2) B】Which floor?
		[链接]h在这里写链接 [题意] 在这里写题意 [题解] 枚举每层有多少个公寓就好. 要注意,每次都要从1到100判断,一下那个公寓该不该出现在那一层. 多个答案,如果答案是一样的.也算是唯一的. ... 
- 【Codeforces Round #434 (Div. 1) B】Polycarp's phone book
		[链接]h在这里写链接 [题意] 给你n个电话号码. 让你给每一个电话号码选定一个字符串s; 使得这个串s是这个电话号码的子串. 且不是任何一个其他电话号码的子串. s要求最短. [题解] 字典树. ... 
- 【Codeforces Round #432 (Div. 1) B】Arpa and a list of numbers
		[链接]h在这里写链接 [题意] 定义bad list是一个非空的.最大公约数为1的序列.给定一个序列,有两种操作:花费x将一个元素删除.花费y将一个元素加1,问你将这个序列变为good list所需 ... 
- 【Codeforces Round #440 (Div. 2) B】Maximum of Maximums of Minimums
		[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] k=1的时候就是最小值, k=2的时候,暴力枚举分割点. k=3的时候,最大值肯定能被"独立出来",则直接输出最 ... 
- 【Codeforces Round #420 (Div. 2) C】Okabe and Boxes
		[题目链接]:http://codeforces.com/contest/821/problem/C [题意] 给你2*n个操作; 包括把1..n中的某一个数压入栈顶,以及把栈顶元素弹出; 保证压入和 ... 
- 【Codeforces Round #420 (Div. 2) B】Okabe and Banana Trees
		[题目链接]:http://codeforces.com/contest/821/problem/B [题意] 当(x,y)这个坐标中,x和y都为整数的时候; 这个坐标上会有x+y根香蕉; 然后给你一 ... 
- 【Codeforces Round #420 (Div. 2) A】Okabe and Future Gadget Laboratory
		[题目链接]:http://codeforces.com/contest/821/problem/A [题意] 给你一个n*n的数组; 然后问你,是不是每个位置(x,y); 都能找到一个同一行的元素q ... 
- 【Codeforces Round #423 (Div. 2) C】String Reconstruction
		[Link]:http://codeforces.com/contest/828/problem/C [Description] 让你猜一个字符串原来是什么; 你知道这个字符串的n个子串; 且知道第i ... 
- 【Codeforces Round #423 (Div. 2) B】Black Square
		[Link]:http://codeforces.com/contest/828/problem/B [Description] 给你一个n*m的格子; 里面包含B和W两种颜色的格子; 让你在这个格子 ... 
随机推荐
- TensorFlow的学习
			1.先判断python的版本(因为有些python版本自带pip,可以参考我写的对pip的认识的博客文章),选择是否安装pip,然后安装更新tensorflow如:sudo pip install - ... 
- BZOJ 1232 Kruskal
			思路: 跟昨天的考试题特别像-.. 就是裸的Kruskal 把边权设为连接的两个点的点权之和加上边权*2 搞定 //By SiriusRen #include <cstdio> #incl ... 
- Redhat Linux下如何使用KVM虚拟机(视频)
			KVM(kernel-basedVirtualMachine)是一个开源的系统虚拟化模块,自Linux2.6.20之后集成在Linux的各个主要发行版本中.它使用Linux自身的调度器进行管理,所以相 ... 
- ES6第三节:变量的解构赋值
			ES6允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构.下面我们看实际的例子: 一.数组解构: let [a,b,c] = [1,2,3]; console.log(a); //a ... 
- FZU 1962 新击鼓传花游戏
			新击鼓传花游戏 Time Limit: 1000ms Memory Limit: 32768KB This problem will be judged on FZU. Original ID: 19 ... 
- Linux "零拷贝" sendfile函数中文说明及实际操作分析
			Sendfile函数说明 #include ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); sendfile ... 
- 洛谷 P1405 苦恼的小明
			P1405 苦恼的小明 题目描述 黄小明和他的合伙人想要创办一所英语培训机构,注册的时候要填一张个人情况的表格,在身高一栏小明犯了愁. 身高要求精确到厘米,但小明实在太高了,无法在纸上填下这么长的数字 ... 
- [AngularFire] Resolve snapshotChanges doesn't emit value when data is empty
			Updated to AngularFire2 v5.0. One important change is that you need to call .snapshotChanges() or .v ... 
- Drupal 关于节点(nodes)的理解
			在 Drupal 构建的站点中.全部的内容都是以节点形式存储的,一个节点能够是公布的不论什么一个内容,比方说一个单面(page).一个投票(Poll).一篇文章(article).论坛主题(forum ... 
- android-LinearLayout  控件占满父容器位置实现
			经常碰到需要把一个控件放在手机底部的情况,以前都是在LinearLayout尝试使用gravity="bottom" ,但是,没有效果,后来在网上查到了方法,如下 <Line ... 
