5622번: 다이얼 첫째 줄에 알파벳 대문자로 이루어진 단어가 주어진다. 단어는 2글자~15글자로 이루어져 있다. www.acmicpc.net #include using namespace std; int number(char c) { if (c >= 'A' && c = 'D' && c = 'G' && c = 'J' && c = 'M' && c = 'P' && c = 'T' && c = 'W' && c > str; int ans = 0; for (int i = 0; i < str.length(); i++) { ans += number(str[i])+1; } cout