/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 33ms 17.297 MiB
#2 Wrong Answer 38ms 17.898 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
Contest
Happy New Year 2026
Language
PyPy 3 (Python 3.9.18 PyPy 7.3.15)
Submit At
2026-01-06 14:47:56
Judged At
2026-01-06 14:47:57
Judged By
Score
0
Total Time
38ms
Peak Memory
17.898 MiB