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 |
关于取模可以不用for做,研究一下这个mod算法的规律就可以发现 令t=a%b 如果t=0,那结果就是t 否则 : 如果a>0,那结果就是t; 如果a<0,那结果就是t+b; Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator