aboutsummaryrefslogtreecommitdiff
path: root/Word
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-11-05 01:41:11 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-11-05 01:41:11 +0200
commit7f856c7ff080b8d455b9ed16c2e57dd862c3879d (patch)
treec2baf90f98c91567358003d6b97a4afed7fa9b42 /Word
parentc52b36c6a37fdb1d1de146d3939cb42e2c691f44 (diff)
downloadcompetitive-programming-7f856c7ff080b8d455b9ed16c2e57dd862c3879d.tar.xz
competitive-programming-7f856c7ff080b8d455b9ed16c2e57dd862c3879d.zip
moved some file
Diffstat (limited to 'Word')
-rw-r--r--Word/inp0
-rwxr-xr-xWord/mainbin24328 -> 0 bytes
-rw-r--r--Word/main.cpp34
-rw-r--r--Word/main_input0.txt1
-rw-r--r--Word/main_input1.txt1
-rw-r--r--Word/main_input2.txt1
-rw-r--r--Word/main_output0.txt1
-rw-r--r--Word/main_output1.txt1
-rw-r--r--Word/main_output2.txt1
9 files changed, 0 insertions, 40 deletions
diff --git a/Word/inp b/Word/inp
deleted file mode 100644
index e69de29..0000000
--- a/Word/inp
+++ /dev/null
diff --git a/Word/main b/Word/main
deleted file mode 100755
index 01dfeb5..0000000
--- a/Word/main
+++ /dev/null
Binary files differ
diff --git a/Word/main.cpp b/Word/main.cpp
deleted file mode 100644
index 31937b2..0000000
--- a/Word/main.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include<bits/stdc++.h>
-#include <cctype>
-
-using namespace std;
-
-string convertLower(string s) {
- for(auto &ch : s) {
- ch = tolower(ch);
- }
- return s;
-}
-string convertUpper(string s) {
- for(auto &ch : s) {
- ch = toupper(ch);
- }
- return s;
-}
-
-int main () {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- string s;
- cin >> s;
- int l = 0;
- int u = 0;
- for(auto ch : s) {
- if(islower(ch)) {
- l++;
- } else {
- u++;
- }
- }
- cout << (l < u ? convertUpper(s) : convertLower(s));
-}
diff --git a/Word/main_input0.txt b/Word/main_input0.txt
deleted file mode 100644
index dcf8e7c..0000000
--- a/Word/main_input0.txt
+++ /dev/null
@@ -1 +0,0 @@
-HoUse
diff --git a/Word/main_input1.txt b/Word/main_input1.txt
deleted file mode 100644
index 619b51b..0000000
--- a/Word/main_input1.txt
+++ /dev/null
@@ -1 +0,0 @@
-ViP
diff --git a/Word/main_input2.txt b/Word/main_input2.txt
deleted file mode 100644
index b6751f3..0000000
--- a/Word/main_input2.txt
+++ /dev/null
@@ -1 +0,0 @@
-maTRIx
diff --git a/Word/main_output0.txt b/Word/main_output0.txt
deleted file mode 100644
index 90dde25..0000000
--- a/Word/main_output0.txt
+++ /dev/null
@@ -1 +0,0 @@
-house
diff --git a/Word/main_output1.txt b/Word/main_output1.txt
deleted file mode 100644
index 7077ce5..0000000
--- a/Word/main_output1.txt
+++ /dev/null
@@ -1 +0,0 @@
-VIP
diff --git a/Word/main_output2.txt b/Word/main_output2.txt
deleted file mode 100644
index f5f6bec..0000000
--- a/Word/main_output2.txt
+++ /dev/null
@@ -1 +0,0 @@
-matrix