### myaw's blog

By myaw, history, 4 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

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