結果

問題 No.1250 汝は倍数なりや?
ユーザー marroncastlemarroncastle
提出日時 2020-10-09 21:22:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 200 bytes
コンパイル時間 545 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 111,252 KB
最終ジャッジ日時 2023-09-27 14:06:01
合計ジャッジ時間 6,111 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,180 KB
testcase_01 AC 64 ms
71,148 KB
testcase_02 AC 65 ms
70,992 KB
testcase_03 AC 65 ms
71,224 KB
testcase_04 AC 68 ms
71,144 KB
testcase_05 AC 67 ms
71,424 KB
testcase_06 AC 68 ms
71,260 KB
testcase_07 AC 66 ms
71,316 KB
testcase_08 AC 65 ms
71,136 KB
testcase_09 AC 66 ms
71,344 KB
testcase_10 AC 66 ms
71,196 KB
testcase_11 AC 67 ms
71,216 KB
testcase_12 AC 64 ms
71,180 KB
testcase_13 AC 65 ms
71,220 KB
testcase_14 AC 65 ms
71,272 KB
testcase_15 AC 65 ms
71,192 KB
testcase_16 AC 65 ms
71,172 KB
testcase_17 AC 67 ms
71,304 KB
testcase_18 AC 65 ms
71,256 KB
testcase_19 AC 65 ms
71,324 KB
testcase_20 AC 64 ms
71,380 KB
testcase_21 AC 62 ms
71,224 KB
testcase_22 AC 63 ms
71,292 KB
testcase_23 AC 65 ms
71,256 KB
testcase_24 AC 64 ms
71,136 KB
testcase_25 AC 65 ms
71,144 KB
testcase_26 AC 64 ms
71,276 KB
testcase_27 AC 66 ms
70,984 KB
testcase_28 AC 66 ms
71,192 KB
testcase_29 AC 64 ms
71,332 KB
testcase_30 AC 65 ms
71,176 KB
testcase_31 AC 64 ms
71,324 KB
testcase_32 AC 63 ms
71,268 KB
testcase_33 AC 119 ms
99,748 KB
testcase_34 AC 87 ms
90,568 KB
testcase_35 AC 102 ms
101,824 KB
testcase_36 AC 114 ms
99,460 KB
testcase_37 AC 91 ms
90,760 KB
testcase_38 AC 93 ms
93,100 KB
testcase_39 AC 89 ms
90,616 KB
testcase_40 AC 89 ms
90,708 KB
testcase_41 AC 100 ms
95,384 KB
testcase_42 AC 83 ms
85,436 KB
testcase_43 AC 117 ms
111,252 KB
testcase_44 AC 84 ms
85,564 KB
testcase_45 AC 114 ms
99,620 KB
testcase_46 AC 78 ms
81,928 KB
testcase_47 AC 89 ms
92,712 KB
testcase_48 AC 66 ms
71,192 KB
testcase_49 AC 64 ms
71,180 KB
testcase_50 AC 65 ms
71,016 KB
testcase_51 AC 67 ms
71,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def check():
  N, H = map(int, input().split())
  A = list(map(int, input().split()))
  now = 1
  for i in range(N):
    now = now*A[i]%H
    if now==0:
      return 'YES'
  return 'NO'
print(check())
0