HDU3709:Balanced Number(数位DP+记忆化DFS)
摘要:
Problem Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit as a box with weight indicated by the digit. When a pivot is placed at some digit of the number, the distance from a digit to the pivot is th 阅读全文
浙公网安备 33010602011771号