Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

很容易看出来

Posted by yxt008 at 2009-08-15 23:52:36 on Problem 1061
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator