|
|
вернуться в форум(+)Admins it is interesting for this problem, that readln/writeln int64 in pascal always fails??!!?? writeln(int64) fails on case 7 readln(int64) fails on case 10. what kind of pascal compiler do you use?(along with version number) thank you very much As far as I know, FreePascal 2.03 or smth like that ;) (-) P.S. (+) I personally invite you (and everyone who is reading this message ;] ) and your team Shangri-La to participate in Timus Top Coders: First Challenge, see http://acm.timus.ru/contest.aspx?id=46 . Re: (+)Admins You can't use readln(int64) and writeln(int64) in this problem. It's your mistake. Re: (+)Admins thanx safe bird but why i can't use readln(int64) and writeln(int64) in this problem? Re: (+)Admins because of leading zeroes (+)yes, we will come there are three "shangri-la"s in the past since i have two different teammates each year, and.. i just found two members, i think they will come with me:) (+)But... i know why writeln fails not. but... why do "readln(int64)" fail on it? isn't "001234" read as "1234" by readln? I don't think it is a tricky case the C++ program that "read(int64)" gets AC but the Pascal program that "read(int64)" gets wrong answer on 10:( read(int64) fails on test with empty second line Edited by author 04.02.2006 23:55 to Safe Bird... to Safe Bird Var t:Int64; Begin ReadLn(t); WriteLn(T); ReadLn; End. Input 10^10 And What You See For Screen? On My Delphi7 i See 10^10 Re: (+)Admins The first number seems to be 0 on test 10... |
|
|