-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Short_Sort.cpp
More file actions
46 lines (39 loc) · 937 Bytes
/
Copy pathA_Short_Sort.cpp
File metadata and controls
46 lines (39 loc) · 937 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
38
39
40
41
42
43
44
45
46
/*
* Author: orko410
* ----------------------------
* | "NEVER GIVE UP BECAUSE |
* | GREAT THINGS -> TAKE TIME" |
* ----------------------------
*/
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ull unsigned long long int
#define pb push_back
const int N = (int) 1e6+5;
const int M = (int) 1e9+5;
const int MOD = (int) 1000000007;
const int max_prime = (int) 1e6+3;
const int BLK = (int) 700;
const int x = 100000;
int main(){
int t;
cin>>t;
string c = {'a','b','c'};
string atm;
while(t--){
char in;
for(int i=1;i<=3;i++){
cin>>in;
atm.push_back(in);
}
if(atm =="abc"||atm =="bac"||atm =="acb"||atm =="cba"){
cout<<"yes"<<endl;
}
else{
cout<<"no"<<endl;
}
atm.clear();
}
return 0;
}