結果

問題 No.1250 汝は倍数なりや?
ユーザー ohara_nohara_n
提出日時 2020-10-09 21:34:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 28,516 KB
最終ジャッジ日時 2023-09-27 15:26:38
合計ジャッジ時間 3,640 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,784 KB
testcase_01 AC 13 ms
7,916 KB
testcase_02 AC 14 ms
7,880 KB
testcase_03 AC 13 ms
7,940 KB
testcase_04 WA -
testcase_05 AC 12 ms
7,788 KB
testcase_06 AC 12 ms
7,876 KB
testcase_07 AC 13 ms
7,828 KB
testcase_08 AC 13 ms
7,800 KB
testcase_09 AC 13 ms
7,932 KB
testcase_10 AC 13 ms
7,796 KB
testcase_11 WA -
testcase_12 AC 13 ms
7,860 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 13 ms
7,816 KB
testcase_20 WA -
testcase_21 AC 12 ms
7,816 KB
testcase_22 WA -
testcase_23 AC 13 ms
7,816 KB
testcase_24 AC 13 ms
7,964 KB
testcase_25 AC 13 ms
7,820 KB
testcase_26 WA -
testcase_27 AC 13 ms
7,856 KB
testcase_28 WA -
testcase_29 AC 13 ms
7,772 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 112 ms
28,516 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 67 ms
18,860 KB
testcase_38 AC 68 ms
20,092 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 77 ms
21,804 KB
testcase_42 AC 49 ms
15,620 KB
testcase_43 AC 105 ms
26,344 KB
testcase_44 AC 49 ms
15,716 KB
testcase_45 WA -
testcase_46 AC 40 ms
13,604 KB
testcase_47 WA -
testcase_48 AC 13 ms
7,880 KB
testcase_49 AC 12 ms
7,804 KB
testcase_50 AC 13 ms
7,884 KB
testcase_51 AC 13 ms
7,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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