Skip to content

Commit 5226bc0

Browse files
committed
Image
1 parent ca53dcf commit 5226bc0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

1721A.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
5+
#define ll long long
6+
#define endl '\n'
7+
#define debug(n) cout<<(n)<<endl;
8+
const ll INF = 2e18 + 99;
9+
10+
int main(){
11+
ios_base::sync_with_stdio(false);
12+
cin.tie(NULL);
13+
14+
int t;
15+
cin>>t;
16+
while(t--){
17+
unordered_set<char> uos;
18+
string s1, s2;
19+
cin>>s1>>s2;
20+
uos.insert(s1[0]);
21+
uos.insert(s1[1]);
22+
uos.insert(s2[0]);
23+
uos.insert(s2[1]);
24+
cout<<uos.size()-1<<endl;
25+
}
26+
27+
}

0 commit comments

Comments
 (0)