General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
144585149 Practice:
Igorfardoc
1632A - 17 PyPy 3 Accepted 61 ms 28 KB 2022-01-30 20:17:41 2022-01-30 20:17:43
→ Source
for _ in range(int(input())):
	n = int(input())
	s = input()
	if n > 2 or s in ["11", "00"]:
		print("NO")
	else:
		print("YES")
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details