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 all (or most) of you who want to now why WA :) (and maybe to admin)
Posted by junglist corp. 12 May 2004 08:59
The author of the 1010 problem wrote that the values of the function are 'signed long' but you should use 'double' instead of 'long int' for storing the values of the function. In my case this change resulted in AC :)

Edited by author 12.05.2004 09:02
You cannot use long int according to problem statement, because 2^31 - 1 - (-2^31) is more than 2^31 - 1.
Posted by Vlad Veselov 12 May 2004 12:13
Re: You cannot use long int according to problem statement, because 2^31 - 1 - (-2^31) is more than 2^31 - 1.
Posted by ling 2 Jun 2004 19:32
And,you shouldn't use Int64,because it'll make you tle.So,you can use extended.