The same code AC in cstreet and mst. Anything weird with the input or output . Pls suggest.I also removed the last blank line according to previous user suggestions.
Nobody has mentioned , not even the question that there is an extra line of output after we specify number of test cases. I know it’s present in the sample input but usually that’s just a formatting mistake but not this time.
Removed code since AC now.