2013年9月5日

POJ 2488 A Knight's Journey

摘要: A Knight's JourneyTime Limit:1000MSMemory Limit:65536KTotal Submissions:26188Accepted:8942DescriptionBackground The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is two squares in 阅读全文

posted @ 2013-09-05 16:34 天使是一个善良的神 阅读(193) 评论(0) 推荐(0) 编辑

HDU 1715 大菲波数

摘要: 大菲波数Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8683Accepted Submission(s): 2947 Problem DescriptionFibonacci数列,定义如下: f(1)=f(2)=1 f(n)=f(n-1)+f(n-2) n>=3。 计算第n项Fibonacci数值。Input输入第一行为一个整数N,接下来N行为整数Pi(1#include #include #include using namesp 阅读全文

posted @ 2013-09-05 01:31 天使是一个善良的神 阅读(172) 评论(0) 推荐(0) 编辑

导航