結果
| 問題 |
No.40 多項式の割り算
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-16 00:48:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-09-14 18:50:41 |
| 合計ジャッジ時間 | 2,662 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 32 |
ソースコード
n = int(input())
coordinate = [ int(v) for v in input().split() ][::-1]
for i in range(n-2):
coordinate[i+2] += coordinate[i]
coordinate[i] = 0
zero = 0
for i in range(n):
if coordinate[i] == 0:
zero += 1
coordinate = [ str(i) for i in coordinate ]
print(" ".join(coordinate[zero:][::-1]))
Konton7