hash function of dictionary has different complexity for int and string
(huge difference refer to the following submission)
160762368 — accepted (str)
160761953 — tle (int)
both solution are same the only difference is the key in first is string and in 2nd the key is int which is causing tle .....
Colin X Sam X Shayan | Easy Problems Duel | NAC Warmup #1
Codeforces Round 946 Solution Discussion