摘要: Description Diophantus of Alexandria was an egypt mathematician living in Alexandria. He was one of the first mathematicians to study equations ... 阅读全文
posted @ 2015-08-02 10:18 martinue 阅读(220) 评论(0) 推荐(0)
摘要: Description 假设x是一个正整数,它的值不超过65535(即1#includeusing namespace std;bool p[65545];int su[65545],k=0,num[65545],yz[65545];void get(){ memset(p,1,s... 阅读全文
posted @ 2015-08-02 10:13 martinue 阅读(173) 评论(0) 推荐(0)
摘要: The Sports Association of Bangladesh is in great problem with their latest lottery ‘Jodi laiga Jai’. There are so many participants this time that t... 阅读全文
posted @ 2015-08-02 10:09 martinue 阅读(332) 评论(0) 推荐(0)
摘要: Description Consider a positive integer X,and let S be the sum of all positive integer divisors of 2004^X. Your job is to determine S modulo 29 ... 阅读全文
posted @ 2015-08-02 09:57 martinue 阅读(150) 评论(0) 推荐(0)
摘要: Description 寒假又快要到了,不过对于lzx来说,头疼的事又来了,因为众多的后宫都指望着能和lzx约会呢,lzx得安排好计划才行。 假设lzx的后宫团有n个人,寒假共有m天,而每天只能跟一位后宫MM约会,并且由于后宫数量太过庞大了,而寒假的天数太少,所以lzx在寒假里不会与一... 阅读全文
posted @ 2015-08-02 09:53 martinue 阅读(159) 评论(0) 推荐(0)
摘要: Description 154. Factorial time limit per test: 0.25 sec. memory limit per test: 4096 KB input: standard input output: standard output Y... 阅读全文
posted @ 2015-08-02 09:51 martinue 阅读(148) 评论(0) 推荐(0)