摘要: 1059. Prime Factors (25)时间限制50 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者HE, QinmingGiven any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km. Input Specification: Each input file contains one test case which gives a posit 阅读全文
posted @ 2013-09-11 18:32 路萧 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1023. Have Fun with Numbers (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number consisting ex 阅读全文
posted @ 2013-09-11 10:44 路萧 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1024. Palindromic Number (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Non-palindro 阅读全文
posted @ 2013-09-11 10:26 路萧 阅读(255) 评论(0) 推荐(0) 编辑