can anyone explain me why my Java 8 solution gives me TLE but the same solution got AC on Java21
Java 8 submission : 310858958
Java 21 submission : 310859260
Codeforces Educational Round 176 — Solution Discussion