Rgarding cin taken inside the loop

sir inside the loop why you take the cin .if possible then call me i have the doubt .

Hello @Mr_Sidd please wait i am checking the video will get back to you.

@Mr_Sidd in input file there are sequence of characters which are present which can be either the space,digit,alphabet ot any other special character to judge them individually we have to check to which category it belongs to and for that we have to take input after every succesfull judgement otherwise it will keep in judging only one character everytime and eventually then it will end up giving the TLE.

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.