import sys def solve(): s = sys.stdin.readline().strip() cnt = 0 ans = 0 for i in s: cnt += int(i) while True: vi, vx = -1, "99" # 初始化本次删的数位 if len(s) == 1: break while len(s) > 0 and s[0] == "0": s =...