第一题import re100% 第二题min(inputs.count('1')-inputs.count('0'), inputs.count('1')/2) 28%