Source Code
it=int(input())
for i in range(it):
    size=int(input())
    a =input()
    b =input()
    i = 0
    if a != b :
        print(1)
    else:
        print(0)
Copy
Split and Swap azoz1111111
Python 3
111 ms
4.2 MB
Accepted