(BOJ)백준 2558 (baekjoon 2558)

(BOJ)백준 2558 - 2558번: A+B - 2

2558번: A+B - 2

코드

import java.io.*;

public class B2558 {
    static int A, B;
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        A = Integer.parseInt(br.readLine());
        B = Integer.parseInt(br.readLine());
        bw.write(A + B + "\n");bw.flush();
        bw.close();
    }
}

설명