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

Автор Selim_Senpai, история, 3 года назад, По-английски

hello, my friends, I'm solving a DP problem on Cses and I got a time limit exceeded but I saw a solution for the problem using bottom-up technique but I got a time limit on top-down technique although we use the same approach

can someone explain why I get TLE ?

my code https://ideone.com/inIGo6

bottom-up solution https://ideone.com/Pp0EA5

Problem link https://cses.fi/problemset/task/1636

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

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