Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official. ×

By adzo261, history, 3 months ago, ,

I am getting a runtime error on test case 6. Since it is a large test case, I am unable to find what's giving RE in my code.

Can someone please have a look at my code, or give me some small test case similar to case 6.

 » 3 months ago, # |   0 In the last while loop, you erase it1, then you use it, but after erasing an iterator, we cannot be sure to where this iterator points, so we should use the it, then erase it.