結果

問題 No.485 方程式のお勉強
ユーザー tentententen
提出日時 2020-11-12 08:11:01
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 2,760 ms
コンパイル使用メモリ 71,092 KB
実行使用メモリ 58,532 KB
最終ジャッジ日時 2023-09-30 01:03:41
合計ジャッジ時間 5,869 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,768 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 122 ms
56,264 KB
testcase_04 WA -
testcase_05 AC 122 ms
55,720 KB
testcase_06 AC 124 ms
55,656 KB
testcase_07 WA -
testcase_08 AC 121 ms
55,520 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 123 ms
56,352 KB
testcase_13 AC 126 ms
56,392 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 119 ms
53,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if (b % a == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0