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 1496. Spammer

WHATS WRONG WITH THIS CODE?
Posted by Levan Ilashvili 22 Nov 2007 20:26
var
 n,i,j:byte;
 s:array[1..100]of string[31];
begin
readln(n);
for i:=1 to n do
begin
readln(s[i]);
for j:=1 to i-1 do
if s[i]=s[j] then writeln(s[i]);
end;
end.


______________________________
HELP PLZ
Re: WHATS WRONG WITH THIS CODE?
Posted by Alias (Alexander Prudaev) 23 Nov 2007 00:51
try test from example ))))
your program writes something like this
abikbaev
abikbaev
abikbaev
x

it is just fun)

Edited by author 23.11.2007 00:51
Re: WHATS WRONG WITH THIS CODE?
Posted by Levan Ilashvili 15 May 2008 21:44
i  got  it :D
Re: WHATS WRONG WITH THIS CODE?
Posted by Nikita Mikhaylov 5 Nov 2011 19:30
Please, can you give accepted code? I did not understand this program.