https://www.acmicpc.net/problem/1001
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));
String str = br.readLine();
StringTokenizer st = new StringTokenizer(str, " ");
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
System.out.println(a - b);
}
}
https://goguming2.tistory.com/128
'공부 > 알고리즘 공부' 카테고리의 다른 글
[백준] 1008번 : A/B - JAVA [자바] (0) | 2022.06.16 |
---|---|
[백준] 10998번 : A*B - JAVA [자바] (0) | 2022.06.16 |
[백준] 1000번 : A+B - JAVA [자바] (0) | 2022.06.16 |
[백준] 10172번 : 개 - JAVA [자바] (0) | 2022.06.16 |
[백준] 10171번 : 고양이 - JAVA [자바] (0) | 2022.06.16 |