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 |
一种解法另 z = 2 * n + 1 求满足 (2 ^ m) % z == 1 或者 (2 ^ m) % z == z - 1 (m > 0) 的最小m (求解这个可以先尝试解决3243) 如果 (2 ^ m - 1) % z == 0 输出 n * m; 否则 n * m - 1; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator