diff options
Diffstat (limited to 'yesOrYes')
| -rwxr-xr-x | yesOrYes/main | bin | 0 -> 24208 bytes | |||
| -rw-r--r-- | yesOrYes/main.cpp | 22 | ||||
| -rw-r--r-- | yesOrYes/main_input0.txt | 11 | ||||
| -rw-r--r-- | yesOrYes/main_output0.txt | 10 |
4 files changed, 43 insertions, 0 deletions
diff --git a/yesOrYes/main b/yesOrYes/main Binary files differnew file mode 100755 index 0000000..77ce258 --- /dev/null +++ b/yesOrYes/main 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; + } + } +} diff --git a/yesOrYes/main_input0.txt b/yesOrYes/main_input0.txt new file mode 100644 index 0000000..b6e9152 --- /dev/null +++ b/yesOrYes/main_input0.txt @@ -0,0 +1,11 @@ +10 +YES +yES +yes +Yes +YeS +Noo +orZ +yEz +Yas +XES diff --git a/yesOrYes/main_output0.txt b/yesOrYes/main_output0.txt new file mode 100644 index 0000000..1f336ce --- /dev/null +++ b/yesOrYes/main_output0.txt @@ -0,0 +1,10 @@ +YES +YES +YES +YES +YES +NO +NO +NO +NO +NO |
