結果

問題 No.485 方程式のお勉強
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-12 21:41:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 2,078 ms
コンパイル使用メモリ 74,328 KB
実行使用メモリ 41,576 KB
最終ジャッジ日時 2024-04-28 17:08:36
合計ジャッジ時間 5,159 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
41,132 KB
testcase_01 AC 128 ms
41,528 KB
testcase_02 AC 128 ms
41,576 KB
testcase_03 AC 118 ms
40,152 KB
testcase_04 AC 127 ms
41,300 KB
testcase_05 AC 127 ms
41,344 KB
testcase_06 AC 127 ms
41,152 KB
testcase_07 AC 129 ms
41,160 KB
testcase_08 AC 128 ms
41,204 KB
testcase_09 AC 133 ms
41,536 KB
testcase_10 AC 129 ms
41,472 KB
testcase_11 AC 125 ms
41,392 KB
testcase_12 AC 128 ms
41,484 KB
testcase_13 AC 126 ms
41,152 KB
testcase_14 AC 127 ms
40,972 KB
testcase_15 AC 127 ms
41,364 KB
testcase_16 AC 128 ms
41,264 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