Блог пользователя M.A.H.M.O.O.D

Автор M.A.H.M.O.O.D, история, 8 лет назад, По-английски

Good day. So today I was trying to solve this problem 580C - Кефа и парк but as soon as I submitted it I got a wrong answer on test 1 I tried the input of test one locally and it gave a right answer but submitting it gives a wrong answer I double checked the compiler that I was using and I didn't get anywhere. Do you have an idea what's going on??? here's my submission 18172263. Thanks in advance.

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

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

In the first line the DFS function:

bool sure;

There is an initialization missing here.

I believe it should be like

bool sure = false;

Right? This will make you pass that test.