NeutralMilkHotel's blog

By NeutralMilkHotel, history, 11 months ago, In English

https://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?

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
11 months 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