|
|
back to boardShow all messages Hide all messagesit 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 P.S. (+) Dmitry 'Diman_YES' Kovalioff 2 Feb 2006 23:39 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 . 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:) You can't use readln(int64) and writeln(int64) in this problem. It's your mistake. thanx safe bird but why i can't use readln(int64) and writeln(int64) in this problem? because of leading zeroes i know why writeln fails not. but... why do "readln(int64)" fail on it? isn't "001234" read as "1234" by readln? the C++ program that "read(int64)" gets AC but the Pascal program that "read(int64)" gets wrong answer on 10:( Edited by author 04.02.2006 23:55 god... Safe Bird 5 Feb 2006 00:13 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 The first number seems to be 0 on test 10... |
|
|