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

Help, Please! I can't understand why WA! (+)
Posted by Victor Barinov (TNU) 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
Re: Help, Please! I can't understand why WA! (+)
Posted by Burunduk1 26 Sep 2005 04:26
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 :)
Re: Help, Please! I can't understand why WA! (+)
Posted by WinTokk 26 Sep 2005 13:48
Well, please delete the code:)
And what a simple problem!!
Re: Help, Please! I can't understand why WA! (+)
Posted by Victor Barinov (TNU) 26 Sep 2005 14:33
Thank you!
Can you give a test for WA2?
Posted by George_Aloyan[PTS Obninsk] 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?