nubb's blog

By nubb, history, 14 months ago, In English

I was doing Problem 1033D and I was stuck. Later, one of my friends got Accepted first try. Seems like the only difference is that I was using C++17 and my friend was using C++20. Can someone explain why C++17 didn't work but C++20 did?

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

| Write comment?
»
14 months ago, hide # |
Rev. 2  
Vote: I like it -29 Vote: I do not like it

probably because of cbrt implemented in c++17.

»
14 months ago, hide # |
 
Vote: I like it -33 Vote: I do not like it

ur so dumbbbbbbbbbbb

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

because skibidi is a sigma and you have a level 10 gyat

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

In some problems like 1137C - Museums Tour, C++17 can AC more easy but C++20 or 23 maybe a bit harder.

They're fun features :)

»
14 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

I replaced sqrt with sqrtl and cbrt with cbrtl in your code, and it AC'd: 310420549