I have tried it using both adjacency matrix and dictionary but both are giving run time error on TC 3.Can anyone tell me what the problem in the code? (https://mirror.codeforces.com/contest/1534/submission/119406032)
I have tried it using both adjacency matrix and dictionary but both are giving run time error on TC 3.Can anyone tell me what the problem in the code? (https://mirror.codeforces.com/contest/1534/submission/119406032)