結果

問題 No.1250 汝は倍数なりや?
ユーザー nak2yoshinak2yoshi
提出日時 2020-10-09 23:35:05
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 396 bytes
コンパイル時間 1,414 ms
コンパイル使用メモリ 160,084 KB
実行使用メモリ 14,060 KB
最終ジャッジ日時 2023-09-04 10:26:52
合計ジャッジ時間 3,878 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,388 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,384 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 WA -
testcase_12 AC 2 ms
4,380 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2 ms
4,380 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 1 ms
4,380 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
4,384 KB
testcase_24 AC 2 ms
4,380 KB
testcase_25 AC 2 ms
4,380 KB
testcase_26 WA -
testcase_27 AC 2 ms
4,384 KB
testcase_28 WA -
testcase_29 AC 2 ms
4,384 KB
testcase_30 WA -
testcase_31 AC 1 ms
4,376 KB
testcase_32 WA -
testcase_33 AC 44 ms
13,224 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 24 ms
6,880 KB
testcase_38 AC 26 ms
7,120 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 30 ms
7,940 KB
testcase_42 AC 16 ms
6,340 KB
testcase_43 AC 39 ms
14,060 KB
testcase_44 AC 17 ms
6,464 KB
testcase_45 WA -
testcase_46 AC 13 ms
6,416 KB
testcase_47 WA -
testcase_48 AC 2 ms
4,376 KB
testcase_49 AC 2 ms
4,380 KB
testcase_50 WA -
testcase_51 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main() {
    auto input = readln.split.to!(long[]);
    auto N = input[0], H = input[1];
    if (H == 1) {
        writeln("YES");
        return;
    }
    auto A = readln.split.to!(long[]);

    if (A.count!"a == 0" > 0) {
        writeln("NO");
        return;
    }

    if (A.count!(a => a % H == 0) > 0) {
        writeln("YES");
        return;
    }
    writeln("NO");
}
0