摘要: 1751: [Usaco2005 qua]Lake CountingTime Limit:5 SecMemory Limit:64 MBSubmit:190Solved:150[Submit][Status][Discuss]DescriptionDue to recent rains, water... 阅读全文
posted @ 2015-04-03 22:46 HansBug 阅读(193) 评论(0) 推荐(0)
摘要: 输入N,输出phi(N)这样的单个值欧拉函数程序一般见于部分数论题,以及有时候求逆元且取模的数不是质数的情况(逆元:A/B=A*Bphi(p)-1(mod p),一般常见题中p是质数,phi(p)-1=p-2)(Tip:我是来水经验的不解释,不过话说真的好久没写这个了TT) 1 var i:int6... 阅读全文
posted @ 2015-04-03 22:23 HansBug 阅读(213) 评论(0) 推荐(0)
摘要: 2620: [Usaco2012 Mar]Haybale RestackingTime Limit:5 SecMemory Limit:128 MBSubmit:201Solved:111[Submit][Status][Discuss]DescriptionFarmer John has just... 阅读全文
posted @ 2015-04-03 22:08 HansBug 阅读(407) 评论(0) 推荐(0)