結果

問題 No.1250 汝は倍数なりや?
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-10-12 10:37:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 164 bytes
コンパイル時間 1,223 ms
コンパイル使用メモリ 86,580 KB
実行使用メモリ 110,876 KB
最終ジャッジ日時 2023-10-15 01:31:50
合計ジャッジ時間 6,762 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,760 KB
testcase_01 AC 70 ms
71,072 KB
testcase_02 AC 73 ms
71,232 KB
testcase_03 AC 69 ms
70,908 KB
testcase_04 AC 71 ms
71,136 KB
testcase_05 AC 72 ms
71,028 KB
testcase_06 AC 72 ms
71,140 KB
testcase_07 AC 71 ms
71,056 KB
testcase_08 AC 70 ms
71,028 KB
testcase_09 AC 69 ms
71,052 KB
testcase_10 AC 71 ms
71,196 KB
testcase_11 AC 70 ms
71,016 KB
testcase_12 AC 69 ms
71,112 KB
testcase_13 AC 70 ms
70,956 KB
testcase_14 AC 70 ms
70,928 KB
testcase_15 AC 70 ms
70,760 KB
testcase_16 AC 69 ms
71,008 KB
testcase_17 AC 70 ms
71,120 KB
testcase_18 AC 69 ms
71,116 KB
testcase_19 AC 71 ms
71,116 KB
testcase_20 AC 71 ms
71,176 KB
testcase_21 AC 71 ms
70,820 KB
testcase_22 AC 70 ms
71,080 KB
testcase_23 AC 70 ms
71,136 KB
testcase_24 AC 70 ms
71,120 KB
testcase_25 AC 71 ms
71,172 KB
testcase_26 AC 72 ms
70,936 KB
testcase_27 AC 71 ms
70,928 KB
testcase_28 AC 72 ms
71,176 KB
testcase_29 AC 71 ms
71,024 KB
testcase_30 AC 72 ms
71,120 KB
testcase_31 AC 72 ms
70,944 KB
testcase_32 AC 72 ms
71,176 KB
testcase_33 AC 137 ms
99,440 KB
testcase_34 AC 95 ms
90,620 KB
testcase_35 AC 114 ms
101,764 KB
testcase_36 AC 123 ms
99,200 KB
testcase_37 AC 97 ms
91,172 KB
testcase_38 AC 99 ms
93,048 KB
testcase_39 AC 95 ms
90,648 KB
testcase_40 AC 97 ms
90,808 KB
testcase_41 AC 103 ms
95,532 KB
testcase_42 AC 90 ms
85,604 KB
testcase_43 AC 124 ms
110,876 KB
testcase_44 AC 89 ms
85,600 KB
testcase_45 AC 121 ms
99,088 KB
testcase_46 AC 83 ms
82,312 KB
testcase_47 AC 97 ms
93,092 KB
testcase_48 AC 70 ms
71,220 KB
testcase_49 AC 71 ms
71,136 KB
testcase_50 AC 70 ms
70,924 KB
testcase_51 AC 73 ms
71,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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