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 1343. Fairy Tale

Safe Bird (+)Admins [13] // Problem 1343. Fairy Tale 2 Feb 2006 22:10
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
Dmitry 'Diman_YES' Kovalioff As far as I know, FreePascal 2.03 or smth like that ;) (-) // Problem 1343. Fairy Tale 2 Feb 2006 23:33
Dmitry 'Diman_YES' Kovalioff P.S. (+) [1] // Problem 1343. Fairy Tale 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 .
Safe Bird (+)yes, we will come // Problem 1343. Fairy Tale 4 Feb 2006 21:40
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:)
Vladimir Yakovlev (USU) Re: (+)Admins [8] // Problem 1343. Fairy Tale 3 Feb 2006 15:22
You can't use readln(int64) and writeln(int64) in this problem. It's your mistake.
ACM.Krupko_Victor[Ivanovo SPU] Re: (+)Admins [7] // Problem 1343. Fairy Tale 4 Feb 2006 00:53
thanx safe bird
 but why i can't use readln(int64) and writeln(int64) in this problem?
Vladimir Yakovlev (USU) Re: (+)Admins [6] // Problem 1343. Fairy Tale 4 Feb 2006 14:31
because of leading zeroes
Safe Bird (+)But... [5] // Problem 1343. Fairy Tale 4 Feb 2006 21:42
i know why writeln fails not.

but...

why do "readln(int64)" fail on it?
isn't "001234" read as "1234" by readln?
Vladimir Yakovlev (USU) No comments :) [4] // Problem 1343. Fairy Tale 4 Feb 2006 22:26
Safe Bird I don't think it is a tricky case [3] // Problem 1343. Fairy Tale 4 Feb 2006 22:46
the C++ program that "read(int64)" gets AC
but
the Pascal program that "read(int64)" gets wrong answer on 10:(
Vladimir Yakovlev (USU) read(int64) fails on test with empty second line [2] // Problem 1343. Fairy Tale 4 Feb 2006 23:54


Edited by author 04.02.2006 23:55
Safe Bird god... [1] // Problem 1343. Fairy Tale 5 Feb 2006 00:13
ACM.Tolstobrov_Anatoliy[Ivanovo SPU] to Safe Bird... // Problem 1343. Fairy Tale 5 Feb 2006 02: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
currently unnamed... Re: (+)Admins // Problem 1343. Fairy Tale 30 Mar 2006 21:44
The first number seems to be 0 on test 10...