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

Автор darshankdarji, история, 8 лет назад, По-английски

plz help me find out why test case 9 don't work for my code

my solution is this http://mirror.codeforces.com/contest/939/submission/35414707

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

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

Can you explain your logic clearly ?

I also failed on the test 9. But my error was different. The time wasn't wrapping around if it was negative.

P.S. — Another advice I'd like to give you is, don't submit 8-9 times in a contest unless you're sure it's correct. You would have gained 100+ rating points if you only submitted C once.

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

The question asked you to find the minimum value of the time you could assign to the first zone. You have not done that as it is possible to assign a value lower than the value you outputted to get the same number of people to participate.

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

Dear darshankdarji,

Please check the following fix for your code.

35446463

Best wishes