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:请问怎么求平方之后模那个数的余数呢? Posted by:cmc_hope at 2007-03-08 15:59:15 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