CHEFGR: output format of CHEF AND GROUND

The output of each test case should be printed at once or each individually?

1 Like

You can do it either way. Can print it after every test case or after all the test cases.

i am getting wrong answer for this question while my answer is correct
please help