|  | 
|  | 
| back to board | To those who get WA on testcase2 remeber that "Each value of the function is longint (signed long in C++)",so if value[i]=-maxlongint and value[j]=maxlongint then abs(value[i]-value[j])>maxlongintso DO use long long or int64.(i got WA just because of it for 10 times)
Re: To those who get WA on testcase2 Posted by =HPF=  7 Dec 2007 16:07Thanks very much .Re: To those who get WA on testcase2 Posted by rleepas  13 Dec 2007 12:49Thanks very much.Re: To those who get WA on testcase2 Thank you very much!Re: To those who get WA on testcase2 Thanks very muchRe: To those who get WA on testcase2 Posted by ScutFoX  29 Mar 2009 13:26Thank you very much!Re: To those who get WA on testcase2 Posted by cyc  19 Jul 2009 19:23so do ii got wa for nearly ten times
 
 Edited by author 19.07.2009 19:24
 | 
 | 
|