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

Common Board

What type of numbers should I use to read integer numbers from interval [-50000;50000]
Posted by Ignas B. 9 Apr 2004 23:35
longword is only for positive, and longint doesn't work on this grading system.
Please help me.

Edited by author 09.04.2004 23:46
LongInt works succesfully!
Posted by A new start... 10 Apr 2004 15:23
Can you show an example when LongInt doesn't works?
Other signed integer types I don't khow (Int64 is not supported by Delphi, QWord is unsigned). Try to use Comp or Extended.
Re: NOOO [LongInt works succesfully!]
Posted by Ignas B. 10 Apr 2004 19:29
for example :
in the problem 1306. My program works excellent with using longword, but when I replace it by longint I get "wrong answer" .

Ignas

Edited by author 10.04.2004 19:30
Re: NOOO [LongInt works succesfully!]
Posted by A new start... 10 Apr 2004 21:02
And where you take 50000? LongInt = [-2^31;2^31-1], you need [0;2^32-1]!!!
sorry :)
Posted by Ignas B. 10 Apr 2004 21:39