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 1567. SMS-spam

How to read input (Pascal)
Posted by Gorgan Razvan 28 Sep 2011 02:15
 Hello. As the max oh characters is 1000 the input don't fit in a string.
 I tried this:
 i := 0;
 while not eof() do
 begin
 i := i + 1;
 read(ch[i]);
 end;

 Using this I receive an WA. How should I read the input? Thanks!