結果

問題 No.485 方程式のお勉強
ユーザー tsunabittsunabit
提出日時 2018-06-30 16:53:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 5,497 ms
コンパイル使用メモリ 73,136 KB
実行使用メモリ 56,456 KB
最終ジャッジ日時 2023-09-13 16:21:11
合計ジャッジ時間 6,307 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,892 KB
testcase_01 AC 121 ms
55,816 KB
testcase_02 AC 123 ms
55,788 KB
testcase_03 AC 123 ms
55,920 KB
testcase_04 AC 120 ms
55,912 KB
testcase_05 AC 121 ms
55,884 KB
testcase_06 AC 121 ms
55,928 KB
testcase_07 AC 122 ms
55,912 KB
testcase_08 AC 122 ms
55,736 KB
testcase_09 AC 123 ms
55,844 KB
testcase_10 AC 123 ms
55,844 KB
testcase_11 AC 123 ms
56,456 KB
testcase_12 AC 122 ms
56,268 KB
testcase_13 AC 125 ms
55,732 KB
testcase_14 AC 122 ms
55,848 KB
testcase_15 AC 123 ms
56,012 KB
testcase_16 AC 121 ms
56,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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