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 1423. String Tale

I have WA#2. Cann't understand why! I use AnsiString in Pascal!
Posted by Alexey 12 Jun 2006 21:31
Please, help!

Thanks.
Re: I have WA#2. Cann't understand why! I use AnsiString in Pascal!
Posted by Petr 14 Jun 2006 18:04
I have WA8 and I can't understand my mistake as you. But I understand your mistake.
Input:
6
ababab
ababab
Output:
0

Edited by author 14.06.2006 18:04
Re: I have WA#2. Cann't understand why! I use AnsiString in Pascal!
Posted by Alexey 14 Jun 2006 18:58
Thanks!
But now I have TLE#8!!!
I have O(n) algo! Why TLE?
Re: I have WA#2. Cann't understand why! I use AnsiString in Pascal!
Posted by Kirill Voronin 14 Jun 2006 19:31
Hi!

I have the same problems.

First, WA#2 then TLE#8.

Have you solved this problem?

Thanks.
Re: I have WA#2. Cann't understand why! I use AnsiString in Pascal!
Posted by Petr 15 Jun 2006 11:07
I understand my mistake, so i have TLE8 now. O(N)algo.
50% of working time my program only read from input file.
Can anybody help plz? How quickly read lines in pascal?
What's wrong with test#8?
Posted by Alexey 15 Jun 2006 12:02