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

"Long" isn't enough ,I passed it using "double " ,in c++ .
 Each value of the function is longint (signed long in C++); this is absoutely true, but if you make the difference or the sum of 2 longints you may exceed longint. ex maxlongint+maxlongint>maxlongint :))