-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ10822.java
More file actions
23 lines (20 loc) Β· 859 Bytes
/
Q10822.java
File metadata and controls
23 lines (20 loc) Β· 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* Date: 2018. 07. 09.
* URL: https://www.acmicpc.net/problem/10822
* Title: λνκΈ°
* Problem: μ«μμ μ½€λ§λ‘λ§ μ΄λ£¨μ΄μ§ λ¬Έμμ΄ Sκ° μ£Όμ΄μ§λ€. μ΄ λ, Sμ ν¬ν¨λμ΄μλ μμ°μμ ν©μ ꡬνλ νλ‘κ·Έλ¨μ μμ±νμμ€.
* Sμ 첫 λ¬Έμμ λ§μ§λ§ λ¬Έμλ νμ μ«μμ΄κ³ , μ½€λ§λ μ°μν΄μ μ£Όμ΄μ§μ§ μλλ€. μ£Όμ΄μ§λ μλ νμ μμ°μμ΄λ€.
*/
package io.inhyuck.io;
import java.io.*;
public class Q10822 {
public static void main(String args[]) throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String[] numbers = bufferedReader.readLine().split(",");
int sum = 0;
for (String a : numbers) {
sum += Integer.valueOf(a);
}
System.out.println(sum);
}
}