Nyctivoe Blog
31 words
1 minutes
NOI 2017 - 蚯蚓排队 (queue)

Problem Link

Solution#

This is a very bruteforce problem. Just maintain a hash map and then bruteforce all operations. Just becareful and avoid hash collisions with whatever you want.