Comments

Funnily enough, I know this trick. But I was kinda running out of time (had wasted a good lot of time on B), so I didn't get time to copy the snippet because I thought anti-hash cases are rarely used, and also it was very unlikely for anti-hash cases to be incorporated in a div 3 contest.

Turns out they did incorporate anti-hash testcases here. So yeah, I'll keep the snippet in my main template from now on. "Learned the hard way out", yes.

My problem verdicts' table looks like:

  • A — AC
  • B — AC
  • C — AC
  • D — TLE
  • E — AC

feelsbadman

Did problem D have anti-hash testcases? I feel that because my unordered_map solution got TLE after the contest but my map solution got AC after I submitted it now.