摘要:
Happy 2006Time Limit:3000MSMemory Limit:65536KTotal Submissions:8359Accepted:2737DescriptionTwo positive integers are said to be relatively prime to each other if the Great Common Divisor (GCD) is 1. For instance, 1, 3, 5, 7, 9...are all relatively prime to 2006.Now your job is easy: for the given i 阅读全文
摘要:
Longge's problemTime Limit:1000MSMemory Limit:65536KTotal Submissions:6383Accepted:2043DescriptionLongge is good at mathematics and he likes to think about hard mathematical problems which will be solved by some graceful algorithms. Now a problem comes: Given an integer N(1 20 #include21 #includ 阅读全文