結果

問題 No.1250 汝は倍数なりや?
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2022-07-09 11:52:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 475 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 100,028 KB
最終ジャッジ日時 2023-08-28 22:28:48
合計ジャッジ時間 8,155 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,944 KB
testcase_01 AC 68 ms
71,224 KB
testcase_02 AC 69 ms
71,032 KB
testcase_03 AC 69 ms
71,116 KB
testcase_04 WA -
testcase_05 AC 70 ms
71,032 KB
testcase_06 AC 70 ms
71,096 KB
testcase_07 AC 70 ms
71,004 KB
testcase_08 AC 70 ms
71,196 KB
testcase_09 AC 69 ms
71,268 KB
testcase_10 AC 68 ms
70,944 KB
testcase_11 WA -
testcase_12 AC 69 ms
71,028 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 71 ms
71,212 KB
testcase_20 WA -
testcase_21 RE -
testcase_22 WA -
testcase_23 AC 69 ms
71,092 KB
testcase_24 AC 69 ms
71,096 KB
testcase_25 AC 68 ms
70,808 KB
testcase_26 WA -
testcase_27 AC 71 ms
70,940 KB
testcase_28 WA -
testcase_29 AC 70 ms
71,152 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 130 ms
100,028 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 96 ms
85,756 KB
testcase_38 AC 100 ms
86,996 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 104 ms
88,696 KB
testcase_42 AC 92 ms
82,352 KB
testcase_43 AC 114 ms
94,388 KB
testcase_44 AC 91 ms
82,348 KB
testcase_45 WA -
testcase_46 AC 86 ms
80,200 KB
testcase_47 WA -
testcase_48 AC 71 ms
70,788 KB
testcase_49 AC 71 ms
71,292 KB
testcase_50 AC 72 ms
71,204 KB
testcase_51 AC 71 ms
71,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

bufio_scanner = []


def main():
    n, h = [int(fmt_scan()) for _ in range(2)]
    a = [int(x) for x in input().split()]

    for i, v in enumerate(a):
        if h % v == 0:
            h //= v
        a[i] = 1

    ans = "NO"
    for v in a:
        if v % h == 0:
            ans = "YES"

    print(ans)


def fmt_scan() -> str:
    sc = bufio_scanner
    if len(sc) == 0:
        for v in reversed(input().split()):
            sc.append(v)
    return sc.pop()


main()
0