結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,804 KB
testcase_01 AC 14 ms
7,840 KB
testcase_02 AC 14 ms
7,848 KB
testcase_03 AC 14 ms
8,000 KB
testcase_04 AC 14 ms
7,876 KB
testcase_05 AC 14 ms
7,836 KB
testcase_06 AC 14 ms
7,848 KB
testcase_07 AC 14 ms
7,796 KB
testcase_08 AC 14 ms
7,864 KB
testcase_09 AC 14 ms
7,824 KB
testcase_10 AC 14 ms
7,812 KB
testcase_11 WA -
testcase_12 AC 14 ms
7,912 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 14 ms
7,856 KB
testcase_16 AC 14 ms
7,880 KB
testcase_17 AC 14 ms
7,820 KB
testcase_18 AC 14 ms
7,912 KB
testcase_19 AC 14 ms
7,880 KB
testcase_20 WA -
testcase_21 AC 14 ms
7,836 KB
testcase_22 AC 13 ms
7,848 KB
testcase_23 AC 14 ms
7,864 KB
testcase_24 AC 15 ms
7,820 KB
testcase_25 AC 17 ms
7,848 KB
testcase_26 WA -
testcase_27 AC 15 ms
7,996 KB
testcase_28 WA -
testcase_29 AC 14 ms
7,856 KB
testcase_30 WA -
testcase_31 AC 14 ms
7,880 KB
testcase_32 AC 13 ms
7,940 KB
testcase_33 AC 144 ms
28,436 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 86 ms
18,896 KB
testcase_38 AC 96 ms
20,156 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 96 ms
21,872 KB
testcase_42 AC 62 ms
15,656 KB
testcase_43 AC 127 ms
26,256 KB
testcase_44 AC 60 ms
15,712 KB
testcase_45 WA -
testcase_46 AC 46 ms
13,468 KB
testcase_47 WA -
testcase_48 AC 14 ms
7,800 KB
testcase_49 AC 14 ms
7,996 KB
testcase_50 AC 14 ms
7,864 KB
testcase_51 AC 14 ms
7,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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