Source Code
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
		int n;
		cin>>n;
        string s,t;
        cin>>s>>t;
        cout<<!(s==t)<<endl;
    }
}
Copy
Split and Swap moathhamudah
GNU G++17
91 ms
1.1 MB
Accepted