Religious people

this is my code , passes sample test case
after submitting i get no response from the server.
Really annoying platform , please have a look,
neither shows TLE nor wrong answer.

u code is showing wrong ans
check for the input
6 7 2 1
1 3
3 4
2 4
1 2
2 3
1 5
5 6
the ans should be 7
temple in 1 =2
rest road
1,2
2,3
3,4
1,5
5,6
=5
total 7
but ur code is showing 8

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.


whats wrong w this code ?? its showing WA in all except test case 2
and it also works for the above op