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

Why also Wrong Answer?
Posted by Hu Jia Lie for contest 1 May 2003 15:49
I use C,but also WA.

[code deleted]

Edited by moderator 02.01.2020 18:46
Passed!!!
Posted by Hu Jia Lie for contest 5 May 2003 14:26
I have changed a,b into double,and got AC!

that's because such input has surpass the range of long:

4
-1
2000000000
-200000000
0

the standard output should be:
2 3
but because of the limit of long number it has wrongly been changed
into 1 2ЈЎ