2011年7月31日

Humble Numbers HDU 1058 ACM

摘要: Humble NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6085Accepted Submission(s): 2639Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 阅读全文

posted @ 2011-07-31 21:43 kuangbin 阅读(3221) 评论(1) 推荐(2) 编辑

Rightmost Digit ACM HDU1061

摘要: Rightmost DigitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12357Accepted Submission(s): 4773Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line 阅读全文

posted @ 2011-07-31 20:50 kuangbin 阅读(3168) 评论(0) 推荐(1) 编辑

HangOver ACM HDU1056

摘要: #include<iostream>using namespace std;int main(){ int n; double sum; double len; while(cin>>len) { if(len==0)break; sum=0; n=0; while(sum<len) { n++; sum+=1.0/(n+1); } cout<<n<<" card(s)"<<endl; } return 0; } HangOverTime Limit: 2000/1000 MS (Java/Others)Me 阅读全文

posted @ 2011-07-31 19:52 kuangbin 阅读(960) 评论(0) 推荐(0) 编辑

ACM HDU 1048The Hardest Problem Ever

摘要: The Hardest Problem EverTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7298Accepted Submission(s): 3289Problem DescriptionJulius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In o 阅读全文

posted @ 2011-07-31 19:45 kuangbin 阅读(3521) 评论(0) 推荐(0) 编辑

ACM POJ 1037 Keep on Truckin'

摘要: Keep on Truckin'Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3435Accepted Submission(s): 2369Problem DescriptionBoudreaux and Thibodeaux are on the road again . . ."Boudreaux, we have to get this shipment of mudbugs to Baton Rouge by to 阅读全文

posted @ 2011-07-31 00:38 kuangbin 阅读(1127) 评论(0) 推荐(0) 编辑

导航

JAVASCRIPT: