-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsimdish.cpp
More file actions
37 lines (32 loc) · 701 Bytes
/
simdish.cpp
File metadata and controls
37 lines (32 loc) · 701 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
36
37
#include<bits/stdc++.h>
#define MAX 1000000
#define ll long long
#define DEBUG(x) do { std::cout << #x << ": " << x << " "; } while (0)
using namespace std;
int main()
{
int t,n,m,i,j,x,y,flag;
char a[4][20],b[4][20];
cin>>t;
while(t--){
flag=0;
for(i=0;i<4;++i){
cin>>a[i];
}
for(i=0;i<4;++i){
cin>>b[i];
for(j=0;j<4;++j){
if(strcmp(a[j],b[i])==0){
flag++;
}
}
}
if(flag>=2){
cout<<"similar"<<endl;
}
else{
cout<<"dissimilar"<<endl;
}
}
return 0;
}