ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1701. Ostap and Partners

C# and stack overflow
Posted by diver_ru (Fishburg SAAT) 6 Apr 2009 18:57
I spent about 20 attempts on this problem (yea, it's funny). It's all because i got wa12 instead of crash 12 when my recursive dfs led to stack overflow.

P.S. Test 12: n=50000,m=49999, and [probably] graph is line.

Edited by author 06.04.2009 19:04