Solution in cpp
- #include <iostream>
- using namespace std;
- int main() {
- // Write C++ code here
- int t ;
- cin>>t;
- while(t--)
- {
- string s;
- cin>>s;
- if((s[0]=='Y' or s[0]=='y') and (s[1]=='E' or s[1]=='e') and (s[2]=='s' or s[2]=='S'))
- {
- cout<<"YES"<<endl;
- }
- else cout<<"NO"<<endl;
- }
- return 0;
- }
No comments:
Post a Comment