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

Автор He_isenberg, история, 16 месяцев назад, По-английски

In CSES problem — Coin Combination I , I write a iterative dp solution but it gives a TLE . But then I just modify mod variable to a constant global variable it gets accepted . Does constant global variable really impacts that much in runtime ? This is the accepted code : (https://codeforces.me/db3b68/Screenshot from 2025-06-10 12-02-01.png)![ ] This code gives TLE : (/predownloaded/20/11/201127a2c2370fa55e9933f54d9a36a0a15b7c60.png)

Полный текст и комментарии »

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