aboutsummaryrefslogtreecommitdiff
path: root/codeforces/Word
diff options
context:
space:
mode:
Diffstat (limited to 'codeforces/Word')
-rwxr-xr-xcodeforces/Word/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/codeforces/Word/main.cpp b/codeforces/Word/main.cpp
index 31937b2..d32a6ca 100755
--- a/codeforces/Word/main.cpp
+++ b/codeforces/Word/main.cpp
@@ -1,30 +1,30 @@
-#include<bits/stdc++.h>
+#include <bits/stdc++.h>
#include <cctype>
using namespace std;
string convertLower(string s) {
- for(auto &ch : s) {
+ for (auto &ch : s) {
ch = tolower(ch);
}
return s;
}
string convertUpper(string s) {
- for(auto &ch : s) {
+ for (auto &ch : s) {
ch = toupper(ch);
}
return s;
}
-int main () {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
+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)) {
+ for (auto ch : s) {
+ if (islower(ch)) {
l++;
} else {
u++;