1.前缀切分后0与1比例相同 import sys n = int(sys.stdin.readline()) s = [int(x) for x in list(sys.stdin.readline().strip())] def solution(s): from collections import defaultdict dic = defaultdict(int) n = len(s) def gys(...