結果

問題 No.1250 汝は倍数なりや?
ユーザー taiga000629taiga000629
提出日時 2020-10-09 23:15:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 139 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 86,768 KB
実行使用メモリ 110,972 KB
最終ジャッジ日時 2023-09-27 19:39:02
合計ジャッジ時間 6,612 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,112 KB
testcase_01 AC 64 ms
71,420 KB
testcase_02 AC 65 ms
71,104 KB
testcase_03 AC 66 ms
71,288 KB
testcase_04 AC 65 ms
71,144 KB
testcase_05 AC 66 ms
71,168 KB
testcase_06 AC 66 ms
70,920 KB
testcase_07 AC 65 ms
71,124 KB
testcase_08 AC 65 ms
71,084 KB
testcase_09 AC 65 ms
71,376 KB
testcase_10 AC 67 ms
71,348 KB
testcase_11 AC 69 ms
71,168 KB
testcase_12 AC 66 ms
71,324 KB
testcase_13 AC 67 ms
71,100 KB
testcase_14 AC 65 ms
71,284 KB
testcase_15 AC 65 ms
71,128 KB
testcase_16 AC 65 ms
71,228 KB
testcase_17 AC 66 ms
71,188 KB
testcase_18 AC 65 ms
71,232 KB
testcase_19 AC 68 ms
70,960 KB
testcase_20 AC 64 ms
71,304 KB
testcase_21 AC 65 ms
71,272 KB
testcase_22 AC 66 ms
71,244 KB
testcase_23 AC 67 ms
71,120 KB
testcase_24 AC 66 ms
71,116 KB
testcase_25 AC 68 ms
71,192 KB
testcase_26 AC 63 ms
71,244 KB
testcase_27 AC 66 ms
70,956 KB
testcase_28 AC 67 ms
71,228 KB
testcase_29 AC 66 ms
71,268 KB
testcase_30 AC 69 ms
71,348 KB
testcase_31 AC 68 ms
71,196 KB
testcase_32 AC 65 ms
71,072 KB
testcase_33 AC 117 ms
99,684 KB
testcase_34 AC 91 ms
90,996 KB
testcase_35 AC 110 ms
102,088 KB
testcase_36 AC 110 ms
99,428 KB
testcase_37 AC 90 ms
91,304 KB
testcase_38 AC 92 ms
93,260 KB
testcase_39 AC 93 ms
90,892 KB
testcase_40 AC 92 ms
91,048 KB
testcase_41 AC 97 ms
95,716 KB
testcase_42 AC 83 ms
85,892 KB
testcase_43 AC 111 ms
110,972 KB
testcase_44 AC 85 ms
85,860 KB
testcase_45 AC 113 ms
99,464 KB
testcase_46 AC 81 ms
82,264 KB
testcase_47 AC 89 ms
93,124 KB
testcase_48 AC 68 ms
71,116 KB
testcase_49 AC 63 ms
71,112 KB
testcase_50 AC 68 ms
71,172 KB
testcase_51 AC 65 ms
71,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,h=map(int,input().split())
a=list(map(int,input().split()))
ans=1
for i in range(n):
    ans=ans*a[i]%h
print("YES" if ans==0 else "NO")
0