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

What's problem?
Posted by vIx 9 Jun 2005 13:35
A have got WA2 if i use abs() function in my program? but i got AC if i use fabs().
I use double variable.

Why??? It work equaly by documentation.
Re: What's problem?
Posted by Samsonov Alex [SESC USU] 6 Jul 2005 14:20
No!

abs should be used only if you work with 16-bit integer variables.
Re: What's problem?
Posted by GaLL 5 Oct 2005 19:06
What an archaic information!
Of course, abs() can be used for 32-bit variable and it returns exactly 32-BIT VARIABLE!