[백준] 10951번: A+B-4 (JAVA)

군자·2024년 3월 14일

BOJ

목록 보기
4/6

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        String str;
        while((str = br.readLine())!=null){
            st = new StringTokenizer(str);
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            System.out.println(a+b);
        }
    }
}
profile
헬로 아이엠군자. 굿투씨유

0개의 댓글