728x90
출처-https://www.acmicpc.net/problem/1001
728x90
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int b=scan.nextInt();
int sub=a-b;
System.out.println(sub);
}
}
728x90
'Problem Solving > BOJ' 카테고리의 다른 글
[백준, BOJ 1008] A/B (java) (0) | 2020.08.20 |
---|---|
[백준, BOJ 10998] AxB (java) (0) | 2020.08.20 |
[백준, BOJ 10172] 개 (java) (0) | 2020.08.20 |
[백준, BOJ 10171] 고양이 (java) (0) | 2020.08.20 |
[백준, BOJ 10718] We love kriii (java) (0) | 2020.08.20 |