Блог пользователя LALaker

Автор LALaker, история, 5 часов назад, По-английски

How fast can the CF C++ executer run?

Or how much data can the CF C++ executer run in one second?

Can $$$3*10^8$$$ AC in one second's limit?

Which runs faster,C++11, C++14, C++17, C++20 or C++23?

Please reply me.

Sorry for my horrible English grammar.

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
3 часа назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

i don't know so much about the compilers, but C++23 runs noticeably slower than the others, and i recommend use C++14 — C++17 or C++20 (not so much difference)

  • »
    »
    2 часа назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Cuz its in the beta

»
113 минут назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

The 10^8 estimate is a bit rough, the actual number depends on many factors which can be very tricky to analyze. There are even problems where the intended solution is 10^9 with a good constant.

»
77 минут назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Problems with marginal ops usually set higher time limits

»
49 минут назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can $$$3 \times 10^8$$$ AC in one second's limit?

It depends on the algorithm used. While some extremely fast algorithms (sorting, for example) can handle $$$10^9$$$ easily, a general estimation is about $$$10^8$$$ per second.

Which runs faster,C++11, C++14, C++17, C++20 or C++23?

Normally C++ standard version has little to do with runtime performance.

»
13 минут назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Depends on your algorithm. If you calculate ALL the constants, based on my personal experience, it is possible to run over $$$10^9$$$.

For example, sometimes an algorithm may appear to be $$$10^8$$$, but with a huge constant, it may still not be able to run.

But sometimes an algorithm looks like $$$10^12$$$ but has a bunch of unpredictable pruning and optimization, and I remember running it once within 4 seconds.

The version doesn't have much impact, but the impact of 32bits or 64bits is much greater than that. The best way is to practice more and research how fast the CF evaluation machine is and whether it performs certain operations particularly fast.