結果

問題 No.1250 汝は倍数なりや?
ユーザー yuusanlondonyuusanlondon
提出日時 2020-10-09 21:24:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 154 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 111,392 KB
最終ジャッジ日時 2023-09-27 14:12:03
合計ジャッジ時間 6,706 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,492 KB
testcase_01 AC 71 ms
71,456 KB
testcase_02 AC 70 ms
71,244 KB
testcase_03 AC 69 ms
71,136 KB
testcase_04 AC 71 ms
71,088 KB
testcase_05 AC 71 ms
71,244 KB
testcase_06 AC 69 ms
71,372 KB
testcase_07 AC 72 ms
71,176 KB
testcase_08 AC 70 ms
71,248 KB
testcase_09 AC 70 ms
71,268 KB
testcase_10 AC 71 ms
71,368 KB
testcase_11 AC 72 ms
71,324 KB
testcase_12 AC 71 ms
71,540 KB
testcase_13 AC 70 ms
71,276 KB
testcase_14 AC 72 ms
71,316 KB
testcase_15 AC 72 ms
71,332 KB
testcase_16 AC 70 ms
71,280 KB
testcase_17 AC 72 ms
71,364 KB
testcase_18 AC 72 ms
71,452 KB
testcase_19 AC 73 ms
71,164 KB
testcase_20 AC 73 ms
71,288 KB
testcase_21 AC 72 ms
71,332 KB
testcase_22 AC 71 ms
71,448 KB
testcase_23 AC 71 ms
71,528 KB
testcase_24 AC 71 ms
71,456 KB
testcase_25 AC 72 ms
71,368 KB
testcase_26 AC 73 ms
71,320 KB
testcase_27 AC 71 ms
71,280 KB
testcase_28 AC 72 ms
71,328 KB
testcase_29 AC 71 ms
71,244 KB
testcase_30 AC 72 ms
71,568 KB
testcase_31 AC 70 ms
71,444 KB
testcase_32 AC 74 ms
71,556 KB
testcase_33 AC 130 ms
100,048 KB
testcase_34 AC 98 ms
91,084 KB
testcase_35 AC 116 ms
102,356 KB
testcase_36 AC 125 ms
99,556 KB
testcase_37 AC 97 ms
91,388 KB
testcase_38 AC 101 ms
93,424 KB
testcase_39 AC 97 ms
91,072 KB
testcase_40 AC 97 ms
91,344 KB
testcase_41 AC 107 ms
96,220 KB
testcase_42 AC 92 ms
86,152 KB
testcase_43 AC 123 ms
111,392 KB
testcase_44 AC 91 ms
86,004 KB
testcase_45 AC 124 ms
99,792 KB
testcase_46 AC 85 ms
82,356 KB
testcase_47 AC 105 ms
93,256 KB
testcase_48 AC 71 ms
71,468 KB
testcase_49 AC 71 ms
71,284 KB
testcase_50 AC 72 ms
71,392 KB
testcase_51 AC 72 ms
71,436 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
if ans==0:
  print('YES')
else:
  print('NO')
0