Skip to content

Commit b47b32b

Browse files
committed
CT_83
1 parent 43254c7 commit b47b32b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package B3;
2+
3+
import java.util.Scanner;
4+
5+
public class Boj_15813_너의이름은몇점이니 {
6+
public static void main(String[] args) {
7+
Scanner sc = new Scanner(System.in);
8+
9+
int N = sc.nextInt();
10+
sc.nextLine();
11+
String s = sc.nextLine();
12+
13+
int sum = 0;
14+
15+
for (int i = 0; i < N; i++) {
16+
sum += s.charAt(i) - 'A' + 1;
17+
}
18+
19+
System.out.print(sum);
20+
}
21+
}

0 commit comments

Comments
 (0)