I dont get it why we added n= n-1 command?

in the first code of the online judge lecture -input and output I dont get why we added the n= n-1 command?
despite the fact that we mentioned everything required for the question

Hey @priyrajraghav N variable is indicating number of test case that u want to handle.
Since after every iteration of while loop we will finish one test cases, thus we are decrementing 1 from N(indicating that we have finished one test case).

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.