Guys My code seems to be working perfectly fine for first 2 test cases, while the third one gives TLE. When I checked the test case, they gave 500 as the number of test cases and gave only one test case as input. Is this an error on the part of codeforces, or is there any way to deal with this error?
https://codeforces.net/contest/1638/submission/146412114 this is the link to the submission. Please do let me know!
I suppose you are referring to the fact that there are 500 test cases, but you see only 3 lines as input. Thats because the input as well as output and answer are truncated. You can see 3 dots at the end (same for pretest 2).