MKasirloo's blog

By MKasirloo, history, 3 months ago, In English

The same code on different versions of C++, but only C++17 gets AC. Old but Gold!

  • Vote: I like it
  • +13
  • Vote: I do not like it

»
3 months ago, # |
  Vote: I like it +15 Vote: I do not like it

fun fact: CNOI is still using C++14 as a standard.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

C++11 also old But Gold!

»
3 months ago, # |
  Vote: I like it +1 Vote: I do not like it

C++17 32bit is faster for int operations, and C++20 64bit is faster for long long operations.

Try long long and resubmit using 64bit ++20;

»
3 months ago, # |
  Vote: I like it +1 Vote: I do not like it

Probably you just got lucky, test 4 took the longest time.

»
3 months ago, # |
  Vote: I like it +1 Vote: I do not like it

well, yeh. but these are edge cases. like in that ONE problem u like that thing that's only in c++ 20. also c++20 is faster for long longs. but its rly just prefrence