myaw's blog

By myaw, history, 9 years ago, In English

I was trying to solve K-Tree 431C But i'am getting WA in protest 5 , the input is 0 , this is my 12482418 any helps ??

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

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

This :

    if (sum == tot) return ok;
    if (sum > n) return 0;


should be like this:

    if (sum == tot) return ok;
    if (sum > tot) return 0;