It can be inferred that 2089E has a constraint that guarantees the sum of $$$n$$$ does not exceed $$$80$$$.
https://codeforces.me/contest/2089/hacks/1121475
Validator 'vadilator2.exe' returns exit code 3 [FAIL The sum of n exceeds 80. (test case 10)].
But the constraint is missing in the problem statement.
upd:the constraint has been added.