diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-11-05 01:28:02 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-11-05 01:28:02 +0200 |
| commit | c52b36c6a37fdb1d1de146d3939cb42e2c691f44 (patch) | |
| tree | b13bbc546bf9505c875dde5d26424d39d23054c9 /codeforces/yesOrYes | |
| parent | b79a55ceee2f4532ef6621f9d86c6c61543ce6c9 (diff) | |
| download | competitive-programming-c52b36c6a37fdb1d1de146d3939cb42e2c691f44.tar.xz competitive-programming-c52b36c6a37fdb1d1de146d3939cb42e2c691f44.zip | |
Solved 6 problem in filtrationContest and restructured the repo
Diffstat (limited to 'codeforces/yesOrYes')
| -rwxr-xr-x | codeforces/yesOrYes/main | bin | 0 -> 24208 bytes | |||
| -rw-r--r-- | codeforces/yesOrYes/main.cpp | 23 | ||||
| -rw-r--r-- | codeforces/yesOrYes/main_input0.txt | 11 | ||||
| -rw-r--r-- | codeforces/yesOrYes/main_output0.txt | 10 |
4 files changed, 44 insertions, 0 deletions
diff --git a/codeforces/yesOrYes/main b/codeforces/yesOrYes/main Binary files differnew file mode 100755 index 0000000..77ce258 --- /dev/null +++ b/codeforces/yesOrYes/main diff --git a/codeforces/yesOrYes/main.cpp b/codeforces/yesOrYes/main.cpp new file mode 100644 index 0000000..b4b6954 --- /dev/null +++ b/codeforces/yesOrYes/main.cpp @@ -0,0 +1,23 @@ +#include<bits/stdc++.h> +#include <cctype> + +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/codeforces/yesOrYes/main_input0.txt b/codeforces/yesOrYes/main_input0.txt new file mode 100644 index 0000000..b6e9152 --- /dev/null +++ b/codeforces/yesOrYes/main_input0.txt @@ -0,0 +1,11 @@ +10 +YES +yES +yes +Yes +YeS +Noo +orZ +yEz +Yas +XES diff --git a/codeforces/yesOrYes/main_output0.txt b/codeforces/yesOrYes/main_output0.txt new file mode 100644 index 0000000..1f336ce --- /dev/null +++ b/codeforces/yesOrYes/main_output0.txt @@ -0,0 +1,10 @@ +YES +YES +YES +YES +YES +NO +NO +NO +NO +NO |
