結果

問題 No.1250 汝は倍数なりや?
ユーザー mesame3993mesame3993
提出日時 2021-11-18 00:49:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 264 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 109,376 KB
最終ジャッジ日時 2023-08-25 22:30:05
合計ジャッジ時間 6,457 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,964 KB
testcase_01 AC 73 ms
71,064 KB
testcase_02 AC 68 ms
71,092 KB
testcase_03 AC 69 ms
71,296 KB
testcase_04 AC 70 ms
71,024 KB
testcase_05 AC 69 ms
71,200 KB
testcase_06 AC 70 ms
71,064 KB
testcase_07 AC 71 ms
71,188 KB
testcase_08 AC 70 ms
71,088 KB
testcase_09 AC 68 ms
70,812 KB
testcase_10 AC 69 ms
70,964 KB
testcase_11 AC 69 ms
71,004 KB
testcase_12 AC 71 ms
71,088 KB
testcase_13 AC 73 ms
71,260 KB
testcase_14 AC 73 ms
71,276 KB
testcase_15 AC 74 ms
71,148 KB
testcase_16 AC 71 ms
71,088 KB
testcase_17 AC 72 ms
71,220 KB
testcase_18 AC 73 ms
70,808 KB
testcase_19 AC 74 ms
71,236 KB
testcase_20 AC 73 ms
71,280 KB
testcase_21 AC 69 ms
70,992 KB
testcase_22 AC 68 ms
71,220 KB
testcase_23 AC 68 ms
70,996 KB
testcase_24 AC 70 ms
70,808 KB
testcase_25 AC 70 ms
71,280 KB
testcase_26 AC 68 ms
71,296 KB
testcase_27 AC 69 ms
71,308 KB
testcase_28 AC 68 ms
71,056 KB
testcase_29 AC 68 ms
70,784 KB
testcase_30 AC 70 ms
71,092 KB
testcase_31 AC 69 ms
71,028 KB
testcase_32 AC 68 ms
71,052 KB
testcase_33 AC 126 ms
99,208 KB
testcase_34 AC 92 ms
89,676 KB
testcase_35 AC 108 ms
100,196 KB
testcase_36 AC 117 ms
97,636 KB
testcase_37 AC 96 ms
90,200 KB
testcase_38 AC 98 ms
91,920 KB
testcase_39 AC 92 ms
90,060 KB
testcase_40 AC 91 ms
89,940 KB
testcase_41 AC 102 ms
94,212 KB
testcase_42 AC 88 ms
84,868 KB
testcase_43 AC 119 ms
109,376 KB
testcase_44 AC 88 ms
84,976 KB
testcase_45 AC 117 ms
97,628 KB
testcase_46 AC 84 ms
81,356 KB
testcase_47 AC 94 ms
91,804 KB
testcase_48 AC 70 ms
71,236 KB
testcase_49 AC 70 ms
71,188 KB
testcase_50 AC 68 ms
71,376 KB
testcase_51 AC 71 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline=stdin.readline
  n, h = map(int, readline().split())
  A = list(map(int, readline().split()))
  now = 1
  for a in A:
    now *= a
    now %= h
    if now % h == 0:
      print('YES')
      exit()
  print('NO')
main()
0