M.A.H.M.O.O.D's blog

By M.A.H.M.O.O.D, history, 8 years ago, In English

Good day. So today I was trying to solve this problem 580C - Kefa and Park 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.

  • Vote: I like it
  • -4
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you very much man now my problem is with test case #8. But anyway thank you^V^.