| ||||||||||
| 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:有什么要注意的么? 我们开始用这种方法(公式内详) 测了无数组数据..觉得没问题 可是WA了In Reply To:有什么要注意的么? 我们开始用这种方法(公式内详) 测了无数组数据..觉得没问题 可是WA了 Posted by:alpc48 at 2009-10-25 16:05:17 > 我们的公式是 a ^( (fib(n-1)%m - r) % m + r ) * b^( (fib(n-2)%m - r) % m + r) > m是循环节 <=1000000 r是进入循环节前的尾巴 > > 求教 Orz.. 如果fib(n - 1)在进入循环节前的尾巴里,也就是fib(n - 1) < r呢? 我没考虑这种情况WA了好多次... Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator