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.
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.
Thank you very much man now my problem is with test case #8. But anyway thank you^V^.