문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QLGxKAzQDFAUq
문제의 저작권은 SW Expert Academy에 있습니다.
#include <iostream> using namespace std; int main(void) { string str; cin >> str; for(int i=0; i<str.length(); i++) { cout << str.at(i)-'A'+1; if(i < str.length()-1) cout << " "; } cout << "\n"; return 0; } | cs |
'C & C++ > SW Expert Academy' 카테고리의 다른 글
SWEA 2046 - 스탬프 찍기 (0) | 2018.04.27 |
---|---|
SWEA 2047 - 신문 헤드라인 (0) | 2018.04.27 |
SWEA 2056 - 연월일 달력 (0) | 2018.04.27 |
SWEA 2058 - 자릿수 더하기 (0) | 2018.04.27 |
SWEA 2063 - 중간값 찾기 (0) | 2018.04.27 |