結果

問題 No.1250 汝は倍数なりや?
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-09 21:39:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 185 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 111,072 KB
最終ジャッジ日時 2023-09-27 15:45:16
合計ジャッジ時間 6,404 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,320 KB
testcase_01 AC 68 ms
71,320 KB
testcase_02 AC 62 ms
71,620 KB
testcase_03 AC 64 ms
71,428 KB
testcase_04 AC 63 ms
71,316 KB
testcase_05 AC 61 ms
71,320 KB
testcase_06 AC 61 ms
71,116 KB
testcase_07 AC 63 ms
71,404 KB
testcase_08 AC 62 ms
71,328 KB
testcase_09 AC 62 ms
71,184 KB
testcase_10 AC 63 ms
71,312 KB
testcase_11 AC 63 ms
71,380 KB
testcase_12 AC 64 ms
71,624 KB
testcase_13 AC 64 ms
71,188 KB
testcase_14 AC 63 ms
71,116 KB
testcase_15 AC 62 ms
71,264 KB
testcase_16 AC 63 ms
71,604 KB
testcase_17 AC 61 ms
71,544 KB
testcase_18 AC 62 ms
71,264 KB
testcase_19 AC 61 ms
71,112 KB
testcase_20 AC 63 ms
71,560 KB
testcase_21 AC 62 ms
71,268 KB
testcase_22 AC 64 ms
71,372 KB
testcase_23 AC 64 ms
71,268 KB
testcase_24 AC 64 ms
71,496 KB
testcase_25 AC 67 ms
71,228 KB
testcase_26 AC 65 ms
71,264 KB
testcase_27 AC 63 ms
71,264 KB
testcase_28 AC 63 ms
71,268 KB
testcase_29 AC 63 ms
71,388 KB
testcase_30 AC 62 ms
71,420 KB
testcase_31 AC 63 ms
71,268 KB
testcase_32 AC 63 ms
71,336 KB
testcase_33 AC 117 ms
101,112 KB
testcase_34 AC 88 ms
92,328 KB
testcase_35 AC 108 ms
101,960 KB
testcase_36 AC 113 ms
99,704 KB
testcase_37 AC 92 ms
92,640 KB
testcase_38 AC 92 ms
94,556 KB
testcase_39 AC 87 ms
92,228 KB
testcase_40 AC 90 ms
92,460 KB
testcase_41 AC 96 ms
97,436 KB
testcase_42 AC 81 ms
86,940 KB
testcase_43 AC 115 ms
111,072 KB
testcase_44 AC 85 ms
86,948 KB
testcase_45 AC 112 ms
99,788 KB
testcase_46 AC 79 ms
83,236 KB
testcase_47 AC 90 ms
94,596 KB
testcase_48 AC 65 ms
71,108 KB
testcase_49 AC 64 ms
71,372 KB
testcase_50 AC 61 ms
71,332 KB
testcase_51 AC 64 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,h = map(int, input().split())
A = list(map(int, input().split()))

A = [abs(a) for a in A]

t = 1
for a in A:
    t *= a
    t %= h

if t == 0:
    print('YES')
else:
    print('NO')
0