[CodingTest] Beakjoon Q1001


質問する


2つの整数AとBを入力し、A-Bを出力するプログラムを作成します.
ソース
https://www.acmicpc.net/problem/1001

答案用紙

import java.util.Scanner;

public class Q1000 {

	public static void main(String[] args) {

		//두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
		Scanner sc = new Scanner(System.in);
		int a, b;
		a = sc.nextInt();
		b = sc.nextInt();
		
		System.out.println(a + b);
	}

}
メモリ:18292 KB
時間:224ミリ秒
コード長:235 B
言語:java 11