/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 40ms 17.332 MiB
#2 Wrong Answer 38ms 17.746 MiB

Code

for _ in range(int(input())):
    n = int(input())
    s = input()
    p = input()
    if len(set(p)) == 1 and s != p:
        print("NO")
    else:
        print("YES")

Information

Submit By
Type
Submission
Problem
P1233 B. Make Binary Strings Equal
Language
PyPy 3 (Python 3.9.18 PyPy 7.3.15)
Submit At
2026-01-07 03:06:38
Judged At
2026-01-07 03:06:38
Judged By
Score
0
Total Time
40ms
Peak Memory
17.746 MiB