https://www.acmicpc.net/problem/1001
풀이
import java.util.Scanner;
public class bj1001 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
System.out.println(a-b);
in.close();
}
}
'Algorithm > BOJ' 카테고리의 다른 글
[BOJ] 백준 1008(A/B) -Java (0) | 2022.06.23 |
---|---|
[BOJ] 백준 10998(A x B) - Java (0) | 2022.06.23 |
[BOJ] 백준 1000(A+B) - Java (0) | 2022.06.23 |
[BOJ] 백준 10171(고양이) -Java (0) | 2022.06.23 |
[BOJ] 백준 10718(we love kriii) -Java (0) | 2022.06.23 |