1 parent 43254c7 commit b47b32bCopy full SHA for b47b32b
1 file changed
source/BOJ/Java/src/B3/Boj_15813_너의이름은몇점이니.java
@@ -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