結果

問題 No.485 方程式のお勉強
ユーザー 101000010101000010
提出日時 2017-05-17 02:01:56
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 7,044 ms
コンパイル使用メモリ 72,380 KB
実行使用メモリ 56,088 KB
最終ジャッジ日時 2023-07-27 10:54:08
合計ジャッジ時間 6,565 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,008 KB
testcase_01 AC 122 ms
55,680 KB
testcase_02 AC 127 ms
55,752 KB
testcase_03 AC 120 ms
56,044 KB
testcase_04 AC 119 ms
55,724 KB
testcase_05 AC 119 ms
56,052 KB
testcase_06 AC 122 ms
55,832 KB
testcase_07 AC 123 ms
55,784 KB
testcase_08 AC 124 ms
55,324 KB
testcase_09 AC 124 ms
55,872 KB
testcase_10 AC 123 ms
55,724 KB
testcase_11 AC 123 ms
55,580 KB
testcase_12 AC 120 ms
56,088 KB
testcase_13 AC 121 ms
56,060 KB
testcase_14 AC 123 ms
55,812 KB
testcase_15 AC 125 ms
55,480 KB
testcase_16 AC 122 ms
55,432 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