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 |
WA 和 RE的问题WA可能是将费马定理变成欧拉定理了,即判定条件变成a^(p-1) ?= 1这里(a,p) 不一定等于1,转换是错误的。。作死 RE可能是使用Miller_Rabin时用了srand()..醉了. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator