-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3538.cpp
42 lines (41 loc) · 1019 Bytes
/
3538.cpp
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
38
39
40
41
42
#include <iostream>
#include<string.h>
using namespace std;
int main()
{
/*shanbe
1shanbe
2shanbe
3shanbe
4shanbe
5shanbe
jome*/
int k;
char str[10];
int shanbe=1,shanbe1=1,shanbe2=1,shanbe3=1,shanbe4=1,shanbe5=1,jome=1;
for(int i=0;i<3;i++)
{
cin>>k;
for(int i=0;i<k;i++)
{
cin>>str;
if(strcmp(str,"shanbe")==0) shanbe=0;
else if(strcmp(str,"1shanbe")==0) shanbe1=0;
else if(strcmp(str,"2shanbe")==0) shanbe2=0;
else if(strcmp(str,"3shanbe")==0) shanbe3=0;
else if(strcmp(str,"4shanbe")==0) shanbe4=0;
else if(strcmp(str,"5shanbe")==0) shanbe5=0;
else if(strcmp(str,"jome")==0) jome=0;
}
}
int counter=0;
if(shanbe) counter++;
if(shanbe1) counter++;
if(shanbe2) counter++;
if(shanbe3) counter++;
if(shanbe4) counter++;
if(shanbe5) counter++;
if(jome) counter++;
cout << counter<< endl;
return 0;
}