题解 | 小红的01串
小红的01串
https://www.nowcoder.com/practice/8920f77fb2c0409a9f4f9025969110de
for _ in range(int(input())):
s=input()
if len(set(s))==1:
print('Yes')
else:
print('Yes' if s.count('1')&s.count('0')%2==0 else 'No')
#元旦假期你打算怎么过#
查看4道真题和解析