output after every testcase or after taking inputs of all test case then ouput all

Do we have to give output after each testcase or collective output altogether?

usually after each testcase

wrt LIFELTD ques. in current icpc contest