aboutsummaryrefslogtreecommitdiff
path: root/yesOrYes
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-07-13 23:29:10 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-07-13 23:29:10 +0200
commit0dff824a69c41aea4d4d54017360a368d0c6602f (patch)
treeb7d3e5371acc7a0b8a095dac4225bccf091937f5 /yesOrYes
parentdd684349c67c988ef19707cb65e637b6906fac75 (diff)
downloadcompetitive-programming-0dff824a69c41aea4d4d54017360a368d0c6602f.tar.xz
competitive-programming-0dff824a69c41aea4d4d54017360a368d0c6602f.zip
Solved some new problems
Diffstat (limited to 'yesOrYes')
-rwxr-xr-xyesOrYes/mainbin0 -> 24208 bytes
-rw-r--r--yesOrYes/main.cpp22
-rw-r--r--yesOrYes/main_input0.txt11
-rw-r--r--yesOrYes/main_output0.txt10
4 files changed, 43 insertions, 0 deletions
diff --git a/yesOrYes/main b/yesOrYes/main
new file mode 100755
index 0000000..77ce258
--- /dev/null
+++ b/yesOrYes/main
Binary files 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<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