結果

問題 No.485 方程式のお勉強
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 16:33:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 72,324 KB
実行使用メモリ 56,192 KB
最終ジャッジ日時 2023-10-11 11:22:53
合計ジャッジ時間 5,356 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,172 KB
testcase_01 AC 126 ms
56,136 KB
testcase_02 AC 127 ms
56,044 KB
testcase_03 AC 127 ms
55,896 KB
testcase_04 AC 126 ms
55,472 KB
testcase_05 AC 125 ms
55,748 KB
testcase_06 AC 125 ms
55,812 KB
testcase_07 AC 124 ms
56,136 KB
testcase_08 AC 125 ms
55,956 KB
testcase_09 AC 126 ms
55,792 KB
testcase_10 AC 125 ms
55,952 KB
testcase_11 AC 126 ms
55,884 KB
testcase_12 AC 126 ms
55,848 KB
testcase_13 AC 122 ms
56,148 KB
testcase_14 AC 122 ms
55,752 KB
testcase_15 AC 122 ms
56,192 KB
testcase_16 AC 120 ms
55,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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