結果

問題 No.1250 汝は倍数なりや?
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2021-01-10 23:44:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 31,268 KB
最終ジャッジ日時 2024-05-01 06:30:48
合計ジャッジ時間 4,886 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 30 ms
10,496 KB
testcase_04 AC 30 ms
10,496 KB
testcase_05 AC 29 ms
10,624 KB
testcase_06 AC 30 ms
10,624 KB
testcase_07 AC 30 ms
10,624 KB
testcase_08 AC 29 ms
10,624 KB
testcase_09 AC 29 ms
10,752 KB
testcase_10 AC 31 ms
10,496 KB
testcase_11 AC 30 ms
10,496 KB
testcase_12 AC 30 ms
10,624 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 30 ms
10,752 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 29 ms
10,624 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 30 ms
10,752 KB
testcase_24 AC 31 ms
10,752 KB
testcase_25 AC 31 ms
10,752 KB
testcase_26 WA -
testcase_27 AC 31 ms
10,752 KB
testcase_28 WA -
testcase_29 AC 31 ms
10,752 KB
testcase_30 WA -
testcase_31 AC 29 ms
10,880 KB
testcase_32 AC 30 ms
10,752 KB
testcase_33 AC 181 ms
31,268 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 111 ms
21,788 KB
testcase_38 AC 118 ms
22,584 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 131 ms
24,500 KB
testcase_42 AC 84 ms
18,268 KB
testcase_43 AC 165 ms
29,500 KB
testcase_44 AC 85 ms
18,288 KB
testcase_45 WA -
testcase_46 AC 70 ms
16,060 KB
testcase_47 WA -
testcase_48 AC 31 ms
10,752 KB
testcase_49 AC 30 ms
10,624 KB
testcase_50 AC 31 ms
10,624 KB
testcase_51 AC 30 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, h = map(int, input().split())
A = list(map(int, input().split()))

ans = "NO"
trg = False

for i in range(n):
    Ai = A[i]
    if Ai == 0:
        break
    if h % Ai == 0:
        h //= Ai
    if Ai % h == 0:
        trg = True
    if i == n - 1 and trg:
        ans = "YES"

print(ans)
0