Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

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

In the last contest(Codeforces Round 976 (Div. 2)) E question I was up solving it and I was getting multiple TLEs and I saw a very similar code getting accepted The only difference was I was using my function for mod_mul instead of directly computing it in that line itself, I like to use those mod_mul,mod_add for better code readability

But in this question using those affected the verdict was it a one time thing or is it not advisable to use those functions how much difference does it actually take.

P.S Pasting both TLEd and Accepted solution for reference in case I misinterpreted something.

Accepted

TLE

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

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

Use C++20 instead of C++17.

Here is your code accepted:

https://codeforces.net/contest/2020/submission/283818351

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

    Thanks Man