-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathB_Is_it_stated.cpp
More file actions
43 lines (37 loc) · 820 Bytes
/
Copy pathB_Is_it_stated.cpp
File metadata and controls
43 lines (37 loc) · 820 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
#include <bits/stdc++.h>
#define ENDL '\n'
#define lli long long
#define pb push_back
#define ff first
#define ss second
#define fore(i,a,b) for(int i=a;i<b;i++)
#define all(s) begin(s), end(s)
#define sz(s) int(s.size())
#define IO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
using namespace std;
using vi = vector<int>;
using pii = pair<int, int>;
void solve(){
string s ;
cin>>s ;
bool res = false ;
for(int i=0; i< s.size() - 1 ; ++i){
if(s[i]=='i' && s[i+1] == 't'){
res = true ;
break;
}
}
if(res){
cout<<"YES"<<endl;
} else {
cout<<"NO"<<endl ;
}
}
int main(){
// freopen("file.in","r",stdin);
// freopen("file.out","w",stdout);
IO;
int t; cin>>t; while(t--)
solve();
return 0;
}