TLE issue..

Правка en1, от He_isenberg, 2025-06-10 09:10:10

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)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский He_isenberg 2025-06-10 09:10:10 470 Initial revision (published)