-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Image.cpp
More file actions
35 lines (29 loc) · 727 Bytes
/
A_Image.cpp
File metadata and controls
35 lines (29 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
///////////////////////////////
// //
// Md.Mohiul Islam Miraz //
// //
///////////////////////////////
#include<bits/stdc++.h>
#define f1 int flag = 1
#define f0 int flag = 0
#define c0 int counter = 0
#define s0 int sum = 0
#define ll long long
#define yes cout << "YES" << endl
#define no cout << "NO" << endl
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
string s1, s2;
cin >> s1 >> s2;
c0;
if(s1[0]!=s1[1]) counter++;
if(s1[1]!=s2[0] && s1[0]!=s2[0]) counter++;
if(s1[0]!=s2[1] && s1[1]!=s2[1] && s2[0]!=s2[1]) counter++;
cout << counter << endl;
}
}