码迷,mamicode.com
首页 >  
搜索关键字:vitual judge    ( 1412个结果
求n! 末尾有多少个0
其实是求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
HDU1534 Schedule Problem 【差分约束系统】
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
UVA - 12001 UVa Panel Discussion
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
回溯法第6题—0/1字符串问题
[问题描述]输入仅由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
poj 1659 Frogs' Neighborhood (度序列)
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
hdu 4870 rating(高斯消元求期望)
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
POJ 2965-The Pilots Brothers' refrigerator--位运算+BFS+回溯路径
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
POJ 3414--Pots--BFS+回溯路径
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
【UVA】12169-Disgruntled Judge(暴力or欧几里得)
可能由于后台数据的原因,这道题直接暴力枚举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
hrbust 1840 (树状数组第k大) 删点使用
小橙子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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!