TrendBattles's blog

By TrendBattles, 4 weeks ago, In English

Recently, I've been dealing with this problem Here

I have the same code submitted in 3 different compiler (C++ 14, C++ 17, C++ 20), you can check out all those below:

264203324

264204158

264204181

As you can see, C++ 14 is the balanced one and that's why I usually use this compiler for my submissions. What do you guys think about this ?

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

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

Where you learned this way to code centroid decomposition?

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I learned from usaco and changed a little bit. Is there any problem with it ?

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

Maybe I would use c++17 for structured binding and c++20 for 64 bit