Warning: Time limit is too tight to get accepted using STL. The input file size is around 16 MB
But don't let that throw you off. As the other posters on this thread have indicated, it's perfectly possible to get AC using STL containers like "set" or "multiset".
Here's some input / output that I found useful during testing / debugging. Special thanks to fire_bot for their thoughts on this test case.
The input's being hosted off the forums since it's rather big.
Code: Select all