結果

問題 No.1250 汝は倍数なりや?
ユーザー miya145592miya145592
提出日時 2023-05-15 01:53:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 178 ms / 1,000 ms
コード長 196 bytes
コンパイル時間 975 ms
コンパイル使用メモリ 86,792 KB
実行使用メモリ 111,144 KB
最終ジャッジ日時 2023-08-20 10:05:09
合計ジャッジ時間 7,904 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,048 KB
testcase_01 AC 72 ms
71,424 KB
testcase_02 AC 73 ms
71,508 KB
testcase_03 AC 71 ms
71,184 KB
testcase_04 AC 72 ms
71,556 KB
testcase_05 AC 71 ms
71,412 KB
testcase_06 AC 72 ms
71,304 KB
testcase_07 AC 72 ms
71,600 KB
testcase_08 AC 73 ms
71,360 KB
testcase_09 AC 74 ms
71,552 KB
testcase_10 AC 72 ms
71,640 KB
testcase_11 AC 73 ms
71,336 KB
testcase_12 AC 72 ms
71,208 KB
testcase_13 AC 72 ms
71,100 KB
testcase_14 AC 73 ms
71,100 KB
testcase_15 AC 71 ms
71,364 KB
testcase_16 AC 73 ms
71,608 KB
testcase_17 AC 73 ms
71,232 KB
testcase_18 AC 73 ms
71,592 KB
testcase_19 AC 73 ms
71,144 KB
testcase_20 AC 73 ms
71,408 KB
testcase_21 AC 74 ms
71,416 KB
testcase_22 AC 72 ms
71,152 KB
testcase_23 AC 73 ms
71,412 KB
testcase_24 AC 75 ms
71,092 KB
testcase_25 AC 75 ms
71,356 KB
testcase_26 AC 74 ms
71,228 KB
testcase_27 AC 77 ms
71,256 KB
testcase_28 AC 74 ms
71,380 KB
testcase_29 AC 71 ms
71,340 KB
testcase_30 AC 72 ms
71,100 KB
testcase_31 AC 72 ms
71,340 KB
testcase_32 AC 73 ms
71,352 KB
testcase_33 AC 178 ms
99,900 KB
testcase_34 AC 101 ms
91,356 KB
testcase_35 AC 117 ms
101,772 KB
testcase_36 AC 163 ms
99,584 KB
testcase_37 AC 127 ms
91,572 KB
testcase_38 AC 130 ms
93,948 KB
testcase_39 AC 102 ms
91,436 KB
testcase_40 AC 101 ms
91,424 KB
testcase_41 AC 136 ms
96,348 KB
testcase_42 AC 110 ms
86,556 KB
testcase_43 AC 167 ms
111,144 KB
testcase_44 AC 112 ms
86,532 KB
testcase_45 AC 136 ms
99,704 KB
testcase_46 AC 102 ms
82,720 KB
testcase_47 AC 108 ms
93,592 KB
testcase_48 AC 72 ms
71,576 KB
testcase_49 AC 72 ms
71,228 KB
testcase_50 AC 71 ms
71,360 KB
testcase_51 AC 72 ms
71,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N, H = map(int, input().split())
A = list(map(int, input().split()))
G = 1
for a in A:
    G *= math.gcd(a, H)
    G %= H
    if G%H==0:
        print("YES")
        exit()
print("NO")
0