摘要: A == B ?Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 49403Accepted Submission(s): 7593 Problem DescriptionGive you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".Inputeach test case contains t 阅读全文
posted @ 2013-07-20 23:04 龚细军 阅读(466) 评论(2) 推荐(0) 编辑
摘要: 蛇形填数时间限制:3000ms | 内存限制:65535KB难度:3描述在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为: 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4输入直接输入方陈的维数,即n的值。(n 2 int main(void ) 3 { 4 int n; 5 scanf("%d",&n); 6 int m=1,i=-1,j=n-1; 7 int snack[101][101]={0}; 8 while(m0&&snack[i][j-1]==0)15 {16 ... 阅读全文
posted @ 2013-07-20 20:35 龚细军 阅读(360) 评论(0) 推荐(0) 编辑
摘要: Climbing WormTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9964Accepted Submission(s): 6553Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minut 阅读全文
posted @ 2013-07-20 10:55 龚细军 阅读(238) 评论(0) 推荐(0) 编辑
摘要: The Hardest Problem EverTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13035Accepted Submission(s): 5905Problem DescriptionJulius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In 阅读全文
posted @ 2013-07-20 10:49 龚细军 阅读(1091) 评论(3) 推荐(0) 编辑