結果

問題 No.485 方程式のお勉強
ユーザー fal_rndfal_rnd
提出日時 2017-02-28 23:25:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 3,413 ms
コンパイル使用メモリ 74,604 KB
実行使用メモリ 54,420 KB
最終ジャッジ日時 2024-04-14 23:08:28
合計ジャッジ時間 6,393 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
54,108 KB
testcase_01 AC 131 ms
53,940 KB
testcase_02 AC 131 ms
54,320 KB
testcase_03 AC 133 ms
54,020 KB
testcase_04 AC 134 ms
54,332 KB
testcase_05 AC 132 ms
54,100 KB
testcase_06 AC 130 ms
54,256 KB
testcase_07 AC 132 ms
54,092 KB
testcase_08 AC 131 ms
54,148 KB
testcase_09 AC 133 ms
54,332 KB
testcase_10 AC 129 ms
54,252 KB
testcase_11 AC 121 ms
53,084 KB
testcase_12 AC 132 ms
54,256 KB
testcase_13 AC 132 ms
53,948 KB
testcase_14 AC 133 ms
54,400 KB
testcase_15 AC 133 ms
54,420 KB
testcase_16 AC 134 ms
54,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class A{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int a=s.nextInt(),b=s.nextInt();
		System.out.println(b%a==0?b/a:"NO");
	}
}
0