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 1392. Dreaming of Stars

Victor Barinov (TNU) Help, Please! I can't understand why WA! (+) [4] // Problem 1392. Dreaming of Stars 25 Sep 2005 16:30
I have WA on test #2. Why? Here it is my code:

[It is was code here]

My mistake was a stupied missprint ;)

Edited by author 26.09.2005 14:31
I tried to submit your code... And I've got AC :)

Your code:
...
for (k = j; k < n; ++k) if (Component[k] == t)
...

Right code:
...
for (k = 0; k < n; ++k) if (Component[k] == t)
...

So if your change only one symbol you'll also get AC :)
Victor Barinov (TNU) Re: Help, Please! I can't understand why WA! (+) [1] // Problem 1392. Dreaming of Stars 26 Sep 2005 14:33
Thank you!
George_Aloyan[PTS Obninsk] Can you give a test for WA2? // Problem 1392. Dreaming of Stars 23 Nov 2011 18:36
Well... I idin't see any mistakes, but there are some, as I got WA2. So Can you give a test?
Well, please delete the code:)
And what a simple problem!!