From 0dff824a69c41aea4d4d54017360a368d0c6602f Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Wed, 13 Jul 2022 23:29:10 +0200 Subject: Solved some new problems --- yesOrYes/main | Bin 0 -> 24208 bytes yesOrYes/main.cpp | 22 ++++++++++++++++++++++ yesOrYes/main_input0.txt | 11 +++++++++++ yesOrYes/main_output0.txt | 10 ++++++++++ 4 files changed, 43 insertions(+) create mode 100755 yesOrYes/main create mode 100644 yesOrYes/main.cpp create mode 100644 yesOrYes/main_input0.txt create mode 100644 yesOrYes/main_output0.txt (limited to 'yesOrYes') diff --git a/yesOrYes/main b/yesOrYes/main new file mode 100755 index 0000000..77ce258 Binary files /dev/null and b/yesOrYes/main differ 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 + +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 -- cgit v1.2.3