diff options
Diffstat (limited to 'Word')
| -rw-r--r-- | Word/inp | 0 | ||||
| -rwxr-xr-x | Word/main | bin | 24328 -> 0 bytes | |||
| -rw-r--r-- | Word/main.cpp | 34 | ||||
| -rw-r--r-- | Word/main_input0.txt | 1 | ||||
| -rw-r--r-- | Word/main_input1.txt | 1 | ||||
| -rw-r--r-- | Word/main_input2.txt | 1 | ||||
| -rw-r--r-- | Word/main_output0.txt | 1 | ||||
| -rw-r--r-- | Word/main_output1.txt | 1 | ||||
| -rw-r--r-- | Word/main_output2.txt | 1 |
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 Binary files differdeleted file mode 100755 index 01dfeb5..0000000 --- a/Word/main +++ /dev/null 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 |
