I’m trying too much to optimize my code for problem MSV, but it was TLE.
At last AC, when I used
register keyword before (frequently used) variable.
Hope, this topics may help beginners like me.
After changing map with gp_hash_table, it takes only 0.24 sec::