GNU C++17(64) and GNU C++20(64) is better than GNU C++17

Revision en2, by 3omar_ahmed, 2022-06-14 11:41:00

In the last round in Educational Codeforces Round 130 (Rated for Div. 2) i solved 1697C - awoo's Favorite Problem with complexity $$$O(N^2)$$$ by compiler GNU C++20 (64) i wonder how i didn't get TLE, I don't know if there is solution with complexity $$$O(N^2)$$$ or if the tests wasn't good in this problem, also i submited it with compiler GNU C++17 (64) and got accepted ,But i submited it with compiler GNU C++17 and got TLE (Time limit exceeded).

Submissions :

How does it happen ?? Why GNU C++17 (64) and GNU C++20 (64) is better than GNU C++17 ?? How my solution with complexity $$$O(N^2)$$$ works ??

thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English 3omar_ahmed 2022-06-14 11:46:12 0 (published)
en4 English 3omar_ahmed 2022-06-14 11:43:32 153
en3 English 3omar_ahmed 2022-06-14 11:42:04 61
en2 English 3omar_ahmed 2022-06-14 11:41:00 80
en1 English 3omar_ahmed 2022-06-14 11:39:57 750 Initial revision (saved to drafts)