結果

問題 No.485 方程式のお勉強
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 18:56:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 1,922 ms
コンパイル使用メモリ 74,456 KB
実行使用メモリ 41,836 KB
最終ジャッジ日時 2024-04-16 20:43:18
合計ジャッジ時間 4,911 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
41,284 KB
testcase_01 AC 121 ms
41,232 KB
testcase_02 AC 123 ms
41,268 KB
testcase_03 AC 122 ms
41,444 KB
testcase_04 AC 127 ms
41,728 KB
testcase_05 AC 108 ms
41,612 KB
testcase_06 AC 125 ms
41,564 KB
testcase_07 AC 115 ms
41,756 KB
testcase_08 AC 129 ms
41,156 KB
testcase_09 AC 115 ms
41,308 KB
testcase_10 AC 127 ms
41,836 KB
testcase_11 AC 123 ms
41,276 KB
testcase_12 AC 128 ms
41,596 KB
testcase_13 AC 127 ms
41,280 KB
testcase_14 AC 112 ms
41,740 KB
testcase_15 AC 121 ms
41,440 KB
testcase_16 AC 130 ms
41,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public 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