結果
| 問題 | No.40 多項式の割り算 |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-16 00:48:33 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 440 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-04 14:25:48 |
| 合計ジャッジ時間 | 5,095 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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