Have you encountered this before ?

Правка en1, от rmz, 2024-03-24 20:02:11

In this problem I made a dp solution that gets MLE.

Then i added this piece of code.

    for (int i = 1 ; i < n ; i++){
        depee(i,0);
    }

Surprisingly, it worked and i got AC.

can you explain what happened?

Теги dp, recursive, memory limit, c++, pizza

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rmz 2024-03-24 20:02:11 475 Initial revision (published)