diff options
Diffstat (limited to 'yesOrYes/main.cpp')
| -rw-r--r-- | yesOrYes/main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/yesOrYes/main.cpp b/yesOrYes/main.cpp new file mode 100644 index 0000000..04c4fd5 --- /dev/null +++ b/yesOrYes/main.cpp @@ -0,0 +1,22 @@ +#include<bits/stdc++.h> + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + string s; + cin >> s; + for(auto &c : s){ + c = tolower(c); + } + if(s == "yes") { + cout << "YES" << endl; + } else { + cout << "NO" << endl; + } + } +} |
