結果

問題 No.485 方程式のお勉強
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-12 21:41:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 1,900 ms
コンパイル使用メモリ 71,692 KB
実行使用メモリ 56,600 KB
最終ジャッジ日時 2023-08-10 23:59:49
合計ジャッジ時間 4,884 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,792 KB
testcase_01 AC 116 ms
56,004 KB
testcase_02 AC 117 ms
56,376 KB
testcase_03 AC 119 ms
56,600 KB
testcase_04 AC 116 ms
56,548 KB
testcase_05 AC 118 ms
55,568 KB
testcase_06 AC 119 ms
56,296 KB
testcase_07 AC 118 ms
56,572 KB
testcase_08 AC 119 ms
56,388 KB
testcase_09 AC 119 ms
56,348 KB
testcase_10 AC 118 ms
56,392 KB
testcase_11 AC 117 ms
56,180 KB
testcase_12 AC 118 ms
56,252 KB
testcase_13 AC 118 ms
55,668 KB
testcase_14 AC 118 ms
55,556 KB
testcase_15 AC 117 ms
56,160 KB
testcase_16 AC 119 ms
55,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(b % a == 0) {
			System.out.println(b / a);
		} else {
			System.out.println("NO");
		}
	}
}
0