結果

問題 No.485 方程式のお勉強
ユーザー YOSHIYOSHI
提出日時 2021-03-16 22:54:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 3,439 ms
コンパイル使用メモリ 74,860 KB
実行使用メモリ 50,456 KB
最終ジャッジ日時 2024-04-26 05:52:23
合計ジャッジ時間 5,277 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
50,344 KB
testcase_01 AC 57 ms
50,456 KB
testcase_02 AC 57 ms
50,076 KB
testcase_03 AC 59 ms
50,296 KB
testcase_04 AC 58 ms
50,348 KB
testcase_05 AC 57 ms
50,288 KB
testcase_06 AC 58 ms
50,272 KB
testcase_07 AC 59 ms
50,012 KB
testcase_08 AC 57 ms
50,356 KB
testcase_09 AC 58 ms
50,188 KB
testcase_10 AC 58 ms
50,180 KB
testcase_11 AC 57 ms
50,372 KB
testcase_12 AC 59 ms
49,784 KB
testcase_13 AC 56 ms
50,308 KB
testcase_14 AC 59 ms
50,348 KB
testcase_15 AC 59 ms
50,016 KB
testcase_16 AC 58 ms
50,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000485_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String[] x = br.readLine().split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		System.out.println(b % a == 0 ? b / a : "NO");
	}
}
0