Source Code
#include<bits/stdc++.h>
using namespace std;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define fileIO freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout);
#define ammario main
typedef long long ll;
void pls_werk_b0ss()
{
	int n;cin>>n;
	string s,t;cin>>s>>t;
	cout<<(s==t?0:1)<<"\n";
}
int ammario()
{
    fastIO
    int t=1;cin>>t;
    while(t--)pls_werk_b0ss();
} 
Copy
Split and Swap 3am0rab1
GNU G++17
6 ms
736 KB
Accepted
Test Case #1
1 ms
244 KB
Accepted
Input
2
9
flybutter
butterfly
4
jcpc
jcpc
Output
1
0
Judge Output
1
0
Checker Message
2 tokens
Test Case #2
1 ms
376 KB
Accepted
Input
100
1
m
m
13
yydiadtlcoueg
egyydiadtlcou
23
rpwbpuvhifnuapwyndmhtqv
rpwbpuvhifnuapwyndmhtqv
218
tytszotwflegsjzzszfwtzfpnscguemwrczqxycivdqnkypnxnnpmuduhznoaquudhavrncwfwujpcmiggjmcmkkbnjfeodxkgjgwxtrxingiqquhuwqhdswxxrxuzzfhkplwunfagppcoildagktgdar...
Output
0
1
0
1
1
1
0
1
1
0
0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
0
0
0
1
0
0
1
0
0
0
0
1
1
0
0
0
0
1
1
0
1
1
0
1
0
1
0
0
1
0
0
1
1
1
0
1
1
1
0
0
0
1
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
0
Judge Output
0
1
0
1
1
1
0
1
1
0
0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
0
0
0
1
0
0
1
0
0
0
0
1
1
0
0
0
0
1
1
0
1
1
0
1
0
1
0
0
1
0
0
1
1
1
0
1
1
1
0
0
0
1
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
0
Checker Message
100 tokens
Test Case #3
6 ms
736 KB
Accepted
Input
100
125
weyydiadtlcouegmdbyfwurpwbpuvhifnuapwyndmhtqvkgkbhtytszotwflegsjzzszfwtzfpnscguemwrczqxycivdqnkypnxnnpmuduhznoaquudhavrncwfwu
ndmhtqvkgkbhtytszotwflegsjzzszfwtzfpnscguemwrczqxycivdqnkypnxnnpmuduhznoaquudhavrncwfwuweyydiadtlcouegmdbyfwurpwbpu...
Output
1
0
1
0
0
0
0
0
0
0
1
0
1
1
0
0
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
0
1
1
1
1
1
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
1
1
1
0
1
1
0
1
1
0
0
1
0
1
0
0
0
0
1
1
1
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
0
0
1
0
1
1
1
1
Judge Output
1
0
1
0
0
0
0
0
0
0
1
0
1
1
0
0
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
0
1
1
1
1
1
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
1
1
1
0
1
1
0
1
1
0
0
1
0
1
0
0
0
0
1
1
1
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
0
0
1
0
1
1
1
1
Checker Message
100 tokens
Test Case #4
6 ms
680 KB
Accepted
Input
25
19020
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
Output
1
0
0
0
1
0
1
1
0
0
0
0
0
0
1
1
0
1
1
0
0
0
0
0
1
Judge Output
1
0
0
0
1
0
1
1
0
0
0
0
0
0
1
1
0
1
1
0
0
0
0
0
1
Checker Message
25 tokens