diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-07-13 23:29:10 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-07-13 23:29:10 +0200 |
| commit | 0dff824a69c41aea4d4d54017360a368d0c6602f (patch) | |
| tree | b7d3e5371acc7a0b8a095dac4225bccf091937f5 /yesOrYes | |
| parent | dd684349c67c988ef19707cb65e637b6906fac75 (diff) | |
| download | competitive-programming-0dff824a69c41aea4d4d54017360a368d0c6602f.tar.xz competitive-programming-0dff824a69c41aea4d4d54017360a368d0c6602f.zip | |
Solved some new problems
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 |
