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