結果

問題 No.485 方程式のお勉強
ユーザー jimanojimano
提出日時 2018-01-14 14:56:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 3,104 ms
コンパイル使用メモリ 71,908 KB
実行使用メモリ 55,912 KB
最終ジャッジ日時 2023-08-25 17:20:08
合計ジャッジ時間 6,076 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,472 KB
testcase_01 AC 119 ms
55,548 KB
testcase_02 AC 120 ms
55,712 KB
testcase_03 AC 116 ms
55,832 KB
testcase_04 AC 116 ms
55,684 KB
testcase_05 AC 117 ms
55,600 KB
testcase_06 AC 119 ms
55,680 KB
testcase_07 AC 118 ms
55,680 KB
testcase_08 AC 120 ms
55,672 KB
testcase_09 AC 118 ms
55,680 KB
testcase_10 AC 119 ms
55,864 KB
testcase_11 AC 115 ms
55,824 KB
testcase_12 AC 119 ms
55,740 KB
testcase_13 AC 118 ms
55,516 KB
testcase_14 AC 118 ms
55,720 KB
testcase_15 AC 122 ms
55,740 KB
testcase_16 AC 115 ms
55,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;

import java.util.Scanner;

public class No0485 {
	public static void main(String[] args) {
		try (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