icy_bird's blog

By icy_bird, history, 5 years ago, In English

Hi everyone! Hope you guys a nice weekend!

Recently, I have tried to submit my solutions in both GNU C++17 and GNU C++17(64). The result is predictable, GNU C++17(64) is faster compared to GNU C++17. My question is: Is it safe to use C++17(64) in the real contest? I know that C++17(64) was just added a few months ago. So I don't know whether it may lead to some undefined behavior bugs or something like that...

Thanks for reading!

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

»
5 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

Nevermind. I got confused.

»
5 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Ofcourse it's safe that's why it is added. Don't worry just use it carefree.

  • »
    »
    5 years ago, # ^ |
    Rev. 4   Vote: I like it +8 Vote: I do not like it

    Oh, that sounds great! If you look at this two submissions, the difference is quite huge. If the constraint is 1 second. One will pass and one will fail!

    81033748 81033672

»
5 years ago, # |
  Vote: I like it +4 Vote: I do not like it

I have seen C++ 17 (64) to give TLE where C++ 17 gives AC in a recent contest. I haven't looked at why it happens, but something to look out for I suppose.

Context: Comment from recent contest