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 |
很容易看出来In Reply To:有一小子非说他的程序没错,要起诉北大.我觉得他挺可怜的,但我也找不出错.哪位大哥来帮看看.(C语言) Posted by:20054959 at 2007-01-16 21:09:55 第一:m=m%L;n=n%L; 第二:怎么能调用绝对值函数呢?一个无符号类型会存一个负数吗?应该自己定义一个函数,比如说:unsigned long int jueduizhi(unsigned long x,unsigned long y) { if(x<y)return(y-x); else return(x-y); } 做到以上两点,就应该没问题了! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator