其实是求1到n 每个数的最小质因子有多少个5,有多少个5就有多少个0,因为2的个数明显大于5的个数
#include
using namespace std;
int judge(int i){//计算i的最小质因子里有几个5
int cou=0;
while(i%5==0){
cou++;
i/=5;
}
return cou;
}
int main(){
int n;
w...
分类:
其他好文 时间:
2014-08-17 17:05:02
阅读次数:
231
Schedule Problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1283 Accepted Submission(s): 534
Special Judge
Problem Descript...
分类:
其他好文 时间:
2014-08-17 11:46:52
阅读次数:
253
Description
UVa Panel Discussion
The UVa online judge team is arranging a panel discussion for the next ACM-ICPC World Finals event in Orlando, Florida. They want that three...
分类:
其他好文 时间:
2014-08-16 16:31:00
阅读次数:
204
[问题描述]输入仅由0/1组成的长度为n的字符串,并且其中不可含有三个连续的相同子串。 输入:字符串的长度n(n0 do begin p:=x;q:=y;r:=z; while (rn then begin inc(tot,2); exit; end; a[L]:=0; if judge(L) th...
分类:
其他好文 时间:
2014-08-14 19:37:39
阅读次数:
171
Frogs' Neighborhood
Time Limit: 5000MS
Memory Limit: 10000K
Total Submissions: 7295
Accepted: 3150
Special Judge
Description
未名湖附近共有N个大小湖泊L1, L2, ..., Ln(其中包括未名...
分类:
其他好文 时间:
2014-08-14 16:44:48
阅读次数:
197
RatingTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 872Accepted Submission(s): 545Special Judge...
分类:
其他好文 时间:
2014-08-14 16:38:28
阅读次数:
195
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18576
Accepted: 7108
Special Judge
Description
The game “The Pilots...
分类:
其他好文 时间:
2014-08-14 14:19:08
阅读次数:
227
Pots
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9963
Accepted: 4179
Special Judge
Description
You are given two pots, having the volume of A and B...
分类:
其他好文 时间:
2014-08-14 01:33:57
阅读次数:
253
可能由于后台数据的原因,这道题直接暴力枚举a,b进行判断也能过,不过跑的时间长,效率太差了。
14021006
12169
Disgruntled Judge
Accepted
C++
0.876
2014-08-11 08:46:28
不说了,比较无脑。
#include
#include
#include
#incl...
分类:
其他好文 时间:
2014-08-11 21:32:12
阅读次数:
196
小橙子Time Limit: 2000 MSMemory Limit: 32768 KTotal Submit: 2(2 users)Total Accepted: 1(1 users)Rating:Special Judge:NoDescription玻璃小屋里曾经住着一个小橙子。小橙子小小的,性...
分类:
其他好文 时间:
2014-08-10 18:30:30
阅读次数:
205