Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:用一个不大正确的算法糊弄过去了……谁能给个正确算法的提示?

Posted by frkstyc at 2005-12-05 23:09:44 on Problem 2720
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator