I've wrote the same code a the tutorial but it getting TLE
here is the submission 370310085
here is the tutorial code 370309621
please, help
ICPC NA North Central and South Division