Ultra fast mathematician doubts

1st test case wrong…i cant find any error

hey @Aayush_25, you need to print answer for every testcase in new line. Just add endl after for loop and before while loop.

ok got it…THANKS