結果

問題 No.485 方程式のお勉強
ユーザー 101000010101000010
提出日時 2017-05-17 02:01:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 3,569 ms
コンパイル使用メモリ 75,216 KB
実行使用メモリ 54,368 KB
最終ジャッジ日時 2024-04-14 23:21:24
合計ジャッジ時間 6,692 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
54,040 KB
testcase_01 AC 135 ms
54,008 KB
testcase_02 AC 135 ms
54,072 KB
testcase_03 AC 134 ms
54,152 KB
testcase_04 AC 135 ms
54,136 KB
testcase_05 AC 133 ms
53,840 KB
testcase_06 AC 134 ms
54,236 KB
testcase_07 AC 132 ms
54,188 KB
testcase_08 AC 135 ms
54,100 KB
testcase_09 AC 136 ms
54,072 KB
testcase_10 AC 135 ms
54,088 KB
testcase_11 AC 135 ms
54,100 KB
testcase_12 AC 131 ms
53,976 KB
testcase_13 AC 134 ms
54,260 KB
testcase_14 AC 133 ms
54,104 KB
testcase_15 AC 131 ms
53,888 KB
testcase_16 AC 132 ms
54,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No485 {
    public static void main(String[] args){
        int A,B;
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] inputs = str.split(" ");
        A = Integer.parseInt(inputs[0]);
        B = Integer.parseInt(inputs[1]);
        
        if(B % A == 0){
            System.out.println(B/A);
        }else{
            System.out.println("NO");
        }
    }
}
0