Блог пользователя deinier

Автор deinier, 13 лет назад, По-английски

Hi everybody: I don't know why my solution for Prob 550 div 2 fails in this test case. I am getting 2 as expected, and system test got 1. I got WA but maybe system test is wrong, (I don't think so). Thanks in advance.

I sent the same code now in practice rooms and I got 549.88 of 550. How it is posible????

Solution in ideone got 1 too as TopCoder System, for this test case. But, I don't see why!!!

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
13 лет назад, скрыть # |
Rev. 6  
Проголосовать: нравится 0 Проголосовать: не нравится

It seems you have "==" instead of "=" several times. Check 71,78,87,94 lines of your ideone code.

I suspect something is not initialized properly.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Thanks friends, I saw where was my mistake. I forgot to write line 93. You can see it in IDEONE. I installed CodeBlock, it is a great IDE.