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

Be careful with ABS if you use long long!
Posted by Tracy.Ennal.Tasgen 6 Jun 2008 17:49
If you use long long,ABS does not work,as this got WA on #2

[code deleted]

But this got AC!

[code deleted]

Edited by moderator 02.01.2020 18:27
Re: Be careful with ABS if you use long long!
Posted by David_Khachatryan(YSU) 28 Feb 2009 19:38
This solution isn't good at all.May be there will be points
a[0] and a[n] that maxn=abs2(a[0]-a[n]).Your program don't work this time.
Re: Be careful with ABS if you use long long!
Posted by tiancaihb 25 Jul 2009 06:14
will there?