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:alpc02 at 2007-03-09 08:14:03 > a*b = a*(b/2)*2 + a*(b%2) (% c) > 用同样的方法求 a*(b/2)%c > 这样就不会越界 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator