본문 바로가기
PS/Baekjoon

[Baekjoon] 1001 - A-B

by 서현 SEOHYEON 2022. 11. 19.

📝 문제

 

 

 

🔓 답안

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 = new StringTokenizer(br.readLine());
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());

        System.out.println(a-b);
    }

}

'PS > Baekjoon' 카테고리의 다른 글

[Baekjoon] 2741 - N 찍기  (0) 2022.11.21
[Baekjoon] 2420 - 사파리월드  (0) 2022.11.20
[Baekjoon] 2753 - 윤년  (0) 2022.11.18
[Baekjoon] 14681 - 사분면 고르기  (0) 2022.11.17
[Baekjoon] 11660 - 구간 합 구하기 5  (0) 2022.11.15

댓글