문제

https://www.acmicpc.net/problem/11382


문제 풀이

1
2
3
4
5
6
7
8
9
10
11
12
13
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        //받는 숫자가 int형보다 큰 값을 출력하므로 long형 을 이용하여 출력
        Scanner sc = new Scanner(System.in);
        long a = sc.nextLong();
        long b = sc.nextLong();
        long c = sc.nextLong();

        System.out.println(a+b+c);
    }
}

카테고리:

업데이트:

댓글남기기