摘要: Time Limit: 2 Seconds Memory Limit: 65536 KB Statement of the Problem We say that a number is a palindrom if it is the sane when read from left to right or from right to left. For example, the... 阅读全文
posted @ 2012-05-09 13:13 Gavin Lipeng Ma 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 2 Seconds Memory Limit: 65536 KB A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed... 阅读全文
posted @ 2012-05-09 12:09 Gavin Lipeng Ma 阅读(503) 评论(1) 推荐(0) 编辑
摘要: Time Limit: 2 Seconds Memory Limit: 65536 KB A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f(1) = 1, f(2) = 1, ... 阅读全文
posted @ 2012-05-09 09:23 Gavin Lipeng Ma 阅读(300) 评论(0) 推荐(0) 编辑