hermoine13's blog

By hermoine13, history, 8 years ago, In English

My code for problem 580C is giving a wrong answer in test case 26. Can someone please help debug? Here is the link for my code: http://codeforces.com/contest/580/submission/20080587

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

»
8 years ago, # |
  Vote: I like it +5 Vote: I do not like it

You are always setting cons[0]=1 while it should only be 1 if there's a cat at vertex 0.

http://codeforces.com/contest/580/submission/20082069