Created
January 3, 2019 11:09
-
-
Save fpdjsns/53707ccb4e14ef90887175aeae2af24c to your computer and use it in GitHub Desktop.
[SW Expert Academy] 2047. 신문 헤드라인 : https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QKsLaAy0DFAUq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
using namespace std; | |
char toUpper(char c) { | |
return ('a' <= c && c <= 'z') ? c - 'a' + 'A' : c; | |
} | |
int main() { | |
string s; | |
cin >> s; | |
for (int i = 0; i < s.size(); i++) { | |
s[i] = toUpper(s[i]); | |
} | |
cout << s; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment