问题 B: N! 普拉斯 题目描述 在处理阶乘时也需要借助计算器。 在计算机中,数字是通过像01像素矩阵来显示的,最终的显示效果如下: 宝儿姐一直在思考一个问题,N!末尾究竟有多少个0?我们假设N!末尾有k个0,请按照规则打印k。 输入 输入一个正整数n(n< 50) ,输入以EOF结尾。 输出 我 ...
分类:
其他好文 时间:
2018-08-01 12:11:37
阅读次数:
202
问题 C: 磨刀 题目描述 磨刀是一个讲究的工作,只能在n℃下进行,所以我们首先要做的就是把刀的表面温度提升到n℃。处理刀身温度有两种方式: 1.淬火,使刀身温度提高a℃; 2.冰敷,使刀身温度降低b℃。宝儿姐想知道,能否经过多次处理,使得刀身温度达到n℃。 输入 每组输入包含一行:包含三个非负整数 ...
分类:
编程语言 时间:
2018-08-01 11:58:46
阅读次数:
118
#include<iostream>#include<cstdio>#include<cstring>using namespace std;int main (){ int t; cin>>t; while(t--) { int m,k=1; scanf("%d",&m); int sum=0; ...
分类:
其他好文 时间:
2018-07-29 19:28:09
阅读次数:
154
2118 : 早安晚安,不如我先入土为安 题目描述 spring比较喜欢玩台球,因为看着台球在桌子上碰来碰去很有意思(台球撞壁反弹,入射角等于反射角),每次完美的台球入洞,都能体现他数学天才的能力。机房的大佬们当然不承认spring能力强,而是认为每次都是运气而已。 spring很不服气,但又打不过 ...
分类:
其他好文 时间:
2018-07-27 19:17:33
阅读次数:
210
#include<iostream>#include<string.h>#include<stdio.h>using namespace std;int main (){ char s[1005]; while(gets(s)) { int m=strlen(s); int n=m; for(int ...
分类:
其他好文 时间:
2018-07-27 13:19:20
阅读次数:
134
#include<iostream>#include<stdio.h>using namespace std;int gcd(int a,int b){ if(b==0) return a; return gcd(b,a%b);}int main (){ int a,b,c,d; char ch1, ...
分类:
其他好文 时间:
2018-07-27 13:10:34
阅读次数:
111
这个OJ一直在做,一些专题题目都很好,从易至难,阶梯上升,很适合像我这样的蒟蒻 =7= 这篇是关于其中一个专题训练的题解思路及代码 http://120.78.128.11/Contest.jsp?cid=486 所有题面我就不贴了,各位自行去看,链接在上一行 =7= 一、求众数(Map标记+Set ...
分类:
其他好文 时间:
2018-07-26 10:47:04
阅读次数:
179
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n; cin>>n; if(n>=90 && n<=100) cout<<"A"<<endl; else if(n>=80 && n< ...
分类:
其他好文 时间:
2018-07-25 15:13:23
阅读次数:
130
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,k; cin>>n>>k; int count=n; while(n>=k) { int tmp=n; n=n/k; count= ...
分类:
其他好文 时间:
2018-07-25 13:15:28
阅读次数:
116
B : 人间不值得 概览问题列表状态排名编辑 Progress Bar 时间限制:1 Sec 内存限制:256 MiB提交:146 答案正确:12 提交 编辑 B : 人间不值得 概览问题列表状态排名编辑 Progress Bar Progress Bar 时间限制:1 Sec 内存限制:256 M ...
分类:
其他好文 时间:
2018-07-25 11:40:35
阅读次数:
247