Same code got TLE in GNU C++11 and got AC in GNU C++17. Can someone please tell me the reason behind it?
TLE (C++11): http://mirror.codeforces.com/contest/1520/submission/115347126
AC (C++17): http://mirror.codeforces.com/contest/1520/submission/115347176
Thanks!