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

Why wrong?
Posted by Saimon 14 Nov 2011 03:00
This is my code

var n,i:integer;
baza:array[1..1000]of string[2];
tmp,bukva:string[2];
begin
read(n);
i:=0;
repeat
i:=i+1;
readln(baza[i]);
until i=n;
read(bukva);
for i:=1 to n do
begin
tmp:=baza[i];
if bukva=tmp[1] then writeln(tmp);
end;
end.

Where mystake? I think to this code is right, but i have WA in test1. Help please
Re: Why wrong?
Posted by ASARI 23 Dec 2011 13:12
tmp:=baza[i];
if bukva=tmp[1] then writeln(tmp);
mistake there.

Edited by author 23.12.2011 13:14