We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The posted "part of the code" looks fine to me. Please re-examine the complete-code, in case, you have missed out something.
Do remember the first integer denotes the "number of testcases", and also make sure that you reset all variables before the execution of each test-case. These are the most common mistakes. If you still can't figure out the issue, please post your submission link, so that the entire code can be checked for error.
Counter game
You are viewing a single comment's thread. Return to all comments →
The posted "part of the code" looks fine to me. Please re-examine the complete-code, in case, you have missed out something.
Do remember the first integer denotes the "number of testcases", and also make sure that you reset all variables before the execution of each test-case. These are the most common mistakes. If you still can't figure out the issue, please post your submission link, so that the entire code can be checked for error.