結果
| 問題 | No.1250 汝は倍数なりや? |
| コンテスト | |
| ユーザー |
HAGI_TARO
|
| 提出日時 | 2021-10-12 10:36:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 107,520 KB |
| 最終ジャッジ日時 | 2026-04-05 23:01:37 |
| 合計ジャッジ時間 | 3,346 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 49 |
ソースコード
n,h = map(int,input().split())
A = list(map(int,input().split()))
cnt = 1
for i in range(n):
cnt = cnt * A[i] % h
if cnt:
print("YES")
else:
print("NO")
HAGI_TARO