Code chef problem 10:
https://www.codechef.com/COOK125B/problems/ATTENDU
for _ in range(int(input())):
n=int(input())
b=input()
count=0
for i in b:
if i=='0':
count+=1
if count<=30:
print("YES")
else:
print("NO")
https://www.codechef.com/COOK125B/problems/ATTENDU
for _ in range(int(input())):
n=int(input())
b=input()
count=0
for i in b:
if i=='0':
count+=1
if count<=30:
print("YES")
else:
print("NO")
Comments
Post a Comment