摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文