I hate map.count
it give me 20+ times D TL on 4.
CF Edu Round #165 Solution Discussion
Educational Round 165 Solution Discussion (with myself)