ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1010. Discrete Function

To those who get WA on testcase2
Posted by lonelycorn 6 Nov 2007 18:25
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])>maxlongint
so 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:07
Thanks very much .
Re: To those who get WA on testcase2
Posted by rleepas 13 Dec 2007 12:49
Thanks very much.
Re: To those who get WA on testcase2
Posted by shangmin 8 Jan 2008 10:58
Thank you very much!
Re: To those who get WA on testcase2
Posted by MinqiPan 14 Jan 2008 13:28
Thanks very much
Re: To those who get WA on testcase2
Posted by ScutFoX 29 Mar 2009 13:26
Thank you very much!
Re: To those who get WA on testcase2
Posted by cyc 19 Jul 2009 19:23
so do i
i got wa for nearly ten times

Edited by author 19.07.2009 19:24