結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
Rute
|
| 提出日時 | 2020-10-09 21:29:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 31,028 KB |
| 最終ジャッジ日時 | 2024-07-20 08:48:43 |
| 合計ジャッジ時間 | 4,399 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 21 |
ソースコード
N,H = map(int,input().split())
A = list(map(int,input().split()))
f1 = 0
f2 = 0
for i in range(N):
if A[i]%H == 0:
f1 += 1
if A[i] == 0:
f2 += 1
break
if f1 >= 1 and f2 == 0:
print("YES")
elif f1 == 0 and f2 == 0:
print("NO")
else:
print("NO")
Rute