結果

問題 No.1250 汝は倍数なりや?
ユーザー 👑 H20H20
提出日時 2020-11-04 09:57:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 147 ms / 1,000 ms
コード長 165 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 111,264 KB
最終ジャッジ日時 2023-09-29 15:40:50
合計ジャッジ時間 7,124 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,384 KB
testcase_01 AC 61 ms
71,348 KB
testcase_02 AC 61 ms
71,160 KB
testcase_03 AC 59 ms
71,112 KB
testcase_04 AC 59 ms
71,640 KB
testcase_05 AC 70 ms
71,520 KB
testcase_06 AC 67 ms
71,260 KB
testcase_07 AC 63 ms
71,264 KB
testcase_08 AC 59 ms
71,432 KB
testcase_09 AC 58 ms
71,428 KB
testcase_10 AC 60 ms
71,324 KB
testcase_11 AC 59 ms
71,424 KB
testcase_12 AC 58 ms
71,256 KB
testcase_13 AC 60 ms
71,492 KB
testcase_14 AC 61 ms
71,336 KB
testcase_15 AC 59 ms
71,264 KB
testcase_16 AC 60 ms
71,112 KB
testcase_17 AC 60 ms
71,108 KB
testcase_18 AC 62 ms
71,256 KB
testcase_19 AC 60 ms
71,116 KB
testcase_20 AC 59 ms
71,632 KB
testcase_21 AC 59 ms
71,268 KB
testcase_22 AC 59 ms
71,260 KB
testcase_23 AC 63 ms
71,348 KB
testcase_24 AC 65 ms
71,672 KB
testcase_25 AC 60 ms
71,296 KB
testcase_26 AC 59 ms
71,264 KB
testcase_27 AC 62 ms
71,272 KB
testcase_28 AC 59 ms
71,272 KB
testcase_29 AC 60 ms
71,108 KB
testcase_30 AC 60 ms
71,264 KB
testcase_31 AC 60 ms
71,556 KB
testcase_32 AC 61 ms
71,296 KB
testcase_33 AC 146 ms
99,988 KB
testcase_34 AC 98 ms
91,300 KB
testcase_35 AC 124 ms
101,876 KB
testcase_36 AC 139 ms
99,644 KB
testcase_37 AC 107 ms
91,824 KB
testcase_38 AC 112 ms
93,700 KB
testcase_39 AC 99 ms
91,444 KB
testcase_40 AC 99 ms
91,344 KB
testcase_41 AC 117 ms
96,232 KB
testcase_42 AC 94 ms
86,376 KB
testcase_43 AC 147 ms
111,264 KB
testcase_44 AC 92 ms
86,280 KB
testcase_45 AC 136 ms
99,592 KB
testcase_46 AC 84 ms
83,000 KB
testcase_47 AC 105 ms
93,444 KB
testcase_48 AC 58 ms
71,292 KB
testcase_49 AC 59 ms
71,580 KB
testcase_50 AC 60 ms
71,608 KB
testcase_51 AC 69 ms
71,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N,H = map(int, input().split())
A = list(map(int, input().split()))
for a in A:
    H = H//math.gcd(H,a)
if H==1:
    print('YES')
else:
    print('NO')
0