Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:用一个不大正确的算法糊弄过去了……谁能给个正确算法的提示?In Reply To:Re:用一个不大正确的算法糊弄过去了……谁能给个正确算法的提示? Posted by:Loger at 2005-12-05 22:55:24 用一下euler定理可以证明没次运算都对2^100*10^7取模是肯定可以保证正确性的,不过这个数实在太大, 所以我做的时候改成2^39*10^7(63bit)了,后来又改成2^7*10^7(31bit),都过了……我不会证明<2^100*10^7的正确性 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator