My code got AC on 291907874 but TLE on 291907702. The only difference between two submissions is the account.
Additionally, if I use "deducing this"(291908799), this code will also get TLE.
I suspect there is undefined behavior in the code, but I'm not sure about the exact cause.
Can someone help me?