結果

問題 No.1250 汝は倍数なりや?
ユーザー O2MTO2MT
提出日時 2020-10-15 19:14:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 516 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 28,476 KB
最終ジャッジ日時 2023-09-28 01:16:08
合計ジャッジ時間 4,754 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,940 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 15 ms
7,852 KB
testcase_03 AC 14 ms
7,844 KB
testcase_04 WA -
testcase_05 AC 14 ms
7,776 KB
testcase_06 AC 13 ms
7,788 KB
testcase_07 AC 13 ms
7,848 KB
testcase_08 AC 14 ms
7,848 KB
testcase_09 AC 15 ms
7,888 KB
testcase_10 AC 14 ms
7,808 KB
testcase_11 WA -
testcase_12 AC 15 ms
7,976 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 15 ms
7,880 KB
testcase_20 WA -
testcase_21 AC 14 ms
7,808 KB
testcase_22 WA -
testcase_23 AC 14 ms
7,876 KB
testcase_24 AC 15 ms
7,848 KB
testcase_25 AC 13 ms
7,940 KB
testcase_26 WA -
testcase_27 AC 15 ms
7,844 KB
testcase_28 WA -
testcase_29 AC 15 ms
7,800 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 121 ms
28,476 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 73 ms
18,952 KB
testcase_38 AC 79 ms
20,216 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 87 ms
21,736 KB
testcase_42 AC 55 ms
15,496 KB
testcase_43 AC 112 ms
26,268 KB
testcase_44 AC 53 ms
15,724 KB
testcase_45 WA -
testcase_46 AC 43 ms
13,496 KB
testcase_47 WA -
testcase_48 AC 14 ms
7,772 KB
testcase_49 AC 14 ms
7,780 KB
testcase_50 AC 14 ms
7,900 KB
testcase_51 AC 15 ms
7,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,H = map(int,input().split())
A = list(map(int,input().split()))
MOD = 10**9+7
num = 1
for a in A:
    num *= a
    num %= MOD
if num%H == 0:
    print("YES")
else:
    print("NO")
0