-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLTIME1.cpp
More file actions
33 lines (32 loc) · 728 Bytes
/
LTIME1.cpp
File metadata and controls
33 lines (32 loc) · 728 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
#include<bits/stdc++.h>
using namespace std;
int main()
{
long int t;
cin>>t;
while(t--)
{
long int n;
cin>>n;
int a=0,b=0,c=0,d=0,e=0;
char s[20];
for(int i=0;i<n;i++)
{
cin>>s;
if(!strcmp(s,"cakewalk"))
a++;
else if(!strcmp(s,"simple"))
b++;
else if(!strcmp(s,"easy"))
c++;
else if(!strcmp(s,"easy-medium")||!strcmp(s,"medium"))
d++;
else if(!strcmp(s,"medium-hard")||!strcmp(s,"hard"))
e++;
}
if(a&&b&&c&&d&&e)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
}