NeutralMilkHotel's blog

By NeutralMilkHotel, history, 4 years ago, In English

https://mirror.codeforces.com/contest/1366/submission/83422255 In today's contest i was trying to solve a problem and i got re. Can anyone explain why?

»
4 years ago, # |
Rev. 3   Vote: I like it +5 Vote: I do not like it

It is really obvious from your memory consumption. It is a stack overflow. Imagine how many recursive calls you will do? Don't you think it is too much? I will give you a hint:

Hint