We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca53dcf commit 5226bc0Copy full SHA for 5226bc0
1721A.cpp
@@ -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