摘要: 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 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Description 寒假又快要到了,不过对于lzx来说,头疼的事又来了,因为众多的后宫都指望着能和lzx约会呢,lzx得安排好计划才行。 假设lzx的后宫团有n个人,寒假共有m天,而每天只能跟一位后宫MM约会,并且由于后宫数量太过庞大了,而寒假的天数太少,所以lzx在寒假里不会与一... 阅读全文
posted @ 2015-08-02 09:53 martinue 阅读(155) 评论(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 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Problem Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input 输入包括多组... 阅读全文
posted @ 2015-06-22 10:57 martinue 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Problem Description The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj. For a gi... 阅读全文
posted @ 2015-06-03 22:01 martinue 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含有4或6... 阅读全文
posted @ 2015-05-30 23:55 martinue 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful stri... 阅读全文
posted @ 2015-05-24 17:01 martinue 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Problem Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT ho... 阅读全文
posted @ 2015-05-22 16:51 martinue 阅读(115) 评论(0) 推荐(0) 编辑
摘要: The decimal expansion of the fraction 1/33 is , wherethe is used to indicate that the cycle 03 repeatsindefinitely with no intervening digits. I... 阅读全文
posted @ 2015-05-19 21:21 martinue 阅读(146) 评论(0) 推荐(0) 编辑
摘要: In a serious attempt to downsize (reduce) the dole queue, The NewNational Green Labour Rhinoceros Party has decided on the followingstrategy. Eve... 阅读全文
posted @ 2015-05-19 21:13 martinue 阅读(158) 评论(0) 推荐(0) 编辑