[CodingTest] Beakjoon Q1001
576 ワード
質問する
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
Reference
この問題について([CodingTest] Beakjoon Q1001), 我々は、より多くの情報をここで見つけました
https://velog.io/@kay019/CodingTest-Beakjoon-Q1001
テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol
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);
}
}
Reference
この問題について([CodingTest] Beakjoon Q1001), 我々は、より多くの情報をここで見つけました https://velog.io/@kay019/CodingTest-Beakjoon-Q1001テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol