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:为什么这样定义mod函数是错的呢In Reply To:Re:为什么这样定义mod函数是错的呢 Posted by:happytan at 2008-05-11 22:19:58 int mod(int m,int n) { if(m<0)return n-abs(m)%n; else return m%n; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator