Look at 318888244 and 318888731. The former one got TL on test 31. The latter one got AC, running only for less than 1.6s on test 31. The only difference is that one is submitted in C++ 17, and the other one is submitted in C++ 20, which seems weird. My complexity for this problem is $$$O(n\log n\log a_i)$$$, which gives $$$1.2\times 10^8$$$ by the formula inside it. According to the thumb rule it should work perfectly fine in 6 seconds.
I've noticed that C++17 (GCC 7-32) is 32-bit compiler and C++20 (GCC 13-64) is 64-bit compiler. However, I didn't use 64-bit data types in my program, so this shouldn't be the case. Also different C++ language standards isn't much relevant to execution efficiency either. I believe that there must be something unusual with the Codeforces compiler set.
So can anybody explain the hidden reason behind it?








It's currently 2025, why are you still choosing GCC 7 (32-bit)?