1001번1 [Python/Java] 백준 1001번 - A-B https://www.acmicpc.net/problem/1001 1001번: A-B 두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오. www.acmicpc.net Python a, b = map(int, input().split()) print(a - b) Java import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] s = scan.nextLine().split(" "); int n1 = Integer.parseInt(s[0]); int n2 = Integer.parseInt(s[1]); .. 2020. 6. 8. 이전 1 다음