import java.util.Scanner;
import java.io.FileInputStream;
class Solution
{
public static void main(String args[]) throws Exception
{
Scanner sc = new Scanner(System.in);
String s = sc.next();
for(int i=0; i<s.length(); i++){
int score = (int)s.charAt(i);
System.out.print(score-'A'+1+" ");
}
}
}
아스키 코드 활용
'SWEA' 카테고리의 다른 글
[SWEA] 스탬프 찍기 (1) | 2024.09.13 |
---|---|
[SWEA] 신문 헤드라인 (0) | 2024.09.13 |
[SWEA] 연월일 달력 (0) | 2024.09.13 |
[SWEA] 자릿수 더하기 (0) | 2024.09.13 |
[SWEA] 중간 값 구하기 (0) | 2024.09.12 |