摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB Given a positive integer n, print out the positions of all 1's in its binary representation. The position of the least significant bit is 0. Examp... 阅读全文
posted @ 2012-03-12 22:52
Gavin Lipeng Ma
阅读(360)
评论(0)
推荐(0)
摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB You may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is ... 阅读全文
posted @ 2012-03-12 22:08
Gavin Lipeng Ma
阅读(353)
评论(0)
推荐(0)
摘要:
Digital RootsTime Limit: 2 Seconds Memory Limit: 65536 KBBackground The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are 阅读全文
posted @ 2012-03-12 21:49
Gavin Lipeng Ma
阅读(973)
评论(0)
推荐(0)
摘要:
Old BillTime Limit: 2 Seconds Memory Limit: 65536 KBAmong grandfather��s papers a bill was found:72 turkeys $_679_The first and the last digits of the number that obviously represented the total price of those turkeys are replaced here by blanks (denoted _), for they are faded and are now illegible. 阅读全文
posted @ 2012-03-12 20:31
Gavin Lipeng Ma
阅读(242)
评论(0)
推荐(0)
浙公网安备 33010602011771号