문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QKsLaAy0DFAUq
문제의 저작권은 SW Expert Academy에 있습니다.
#include <iostream> using namespace std; int main(void) { string str; cin >> str; for(int i=0; i<str.length(); i++) { if(str.at(i) >= 'a' & str.at(i) <= 'z') str[i] = str[i] - 32; } cout << str << "\n"; return 0; } | cs |
'C & C++ > SW Expert Academy' 카테고리의 다른 글
SWEA 2043 - 서랍의 비밀번호 (0) | 2018.04.27 |
---|---|
SWEA 2046 - 스탬프 찍기 (0) | 2018.04.27 |
SWEA 2050 - 알파벳을 숫자로 변환 (0) | 2018.04.27 |
SWEA 2056 - 연월일 달력 (0) | 2018.04.27 |
SWEA 2058 - 자릿수 더하기 (0) | 2018.04.27 |