### myaw's blog

By myaw, history, 5 years ago, ,

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 ??

• 0

 » 5 years ago, # |   0 Auto comment: topic has been updated by d4rk-h4ck3r (previous revision, new revision, compare).
 » 5 years ago, # | ← Rev. 2 →   0 You forgot about mod and I used long long dp[2002][202];
•  » » 5 years ago, # ^ | ← Rev. 2 →   0 i add it , still same problem 12489401
•  » » » 5 years ago, # ^ |   0 and about long long dp[2002][202];
•  » » » » 5 years ago, # ^ |   0 Same
 » 5 years ago, # |   0 and add if(sum == n && ok == 0){return dp[sum][ok] = 0;}
•  » » 5 years ago, # ^ |   0 No still getting WA , please try code before post something
•  » » » 5 years ago, # ^ |   0 I got my accepted code 11701599
 » 5 years ago, # |   0 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;
•  » » 5 years ago, # ^ |   0 thank you , what a silly mistake get AC .