|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияthis is a maths problem! you will do it as 1044 And 1036 but could you say it clearly? thank you. D[i,j,k] : i-th digit with the sum of 1st -> i-th digit = j and the difference between sum of even digits and sum of odd digits = k Result = Sum of D[n div 2,i,j] * D[n div 2,i,j] ; Understand ? No, can you explain it clearly ? Ha Ha! I think it's mostly the same as mine. But they're a little bit different. My Solution was 2 deminition DP. Use algorithm from problem #1036 |
|
|