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 1545. Hieroglyphs

What's wrong???
Posted by Rudnev Vladimir 22 Feb 2010 22:50
Why I got crash on 10 test????

var a:array[1..100]of string;
n,i:integer; c:string;
begin
read(n);
for i:=1 to n+1 do readln(a[i]);
readln(c);
for i:=1 to n+1 do if pos(c,a[i])=1 then writeln(a[i]);
end.
Re: What's wrong???
Posted by Sergey Lazarev (MSU Tashkent) 22 Feb 2010 22:56
Because 1<=N<=1000 (not 1<=N<=100).
Re: What's wrong???
Posted by Rudnev Vladimir 22 Feb 2010 23:29
Thank you=)) I got AC=))