Post

[BOJ 11382] 꼬마 정민

Baekjoon Online Judge 11382(Java 11)
[꼬마 정민] 문제 풀이

[BOJ 11382] 꼬마 정민

-> 문제 바로가기



시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초512 MB30650312281710971740.397%

문제


  • 꼬마 정민이는 이제 A + B 정도는 쉽게 계산할 수 있다. 이제 A + B + C를 계산할 차례이다!


입력


  • 첫 번째 줄에 A, B, C (1 ≤ A, B, C ≤ 1012)이 공백을 사이에 두고 주어진다.


출력


  • A+B+C의 값을 출력한다.


예제


1
2
// 입력
77 77 7777
1
2
// 출력
7931


출처



알고리즘 분류








제출



내 제출


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.io.*;
import java.util.*;

public class Main {
    public static void solution() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

        StringTokenizer st = new StringTokenizer(br.readLine(), " ");

        Long a = Long.parseLong(st.nextToken());
        Long b = Long.parseLong(st.nextToken());
        Long c = Long.parseLong(st.nextToken());

        bw.write(String.valueOf(a + b + c));

        bw.flush();
        bw.close();
        br.close();
    }

    public static void main(String[] args) throws IOException {
        solution();
    }
}


런타임메모리
112 ms14188 KB


Reference


This post is licensed under CC BY 4.0 by the author.