|
|
back to boardCommon BoardWhat type of numbers should I use to read integer numbers from interval [-50000;50000] 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! 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!] 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!] And where you take 50000? LongInt = [-2^31;2^31-1], you need [0;2^32-1]!!! |
|
|