結果
| 問題 |
No.40 多項式の割り算
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-16 00:50:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-09-14 18:53:54 |
| 合計ジャッジ時間 | 2,555 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 1 |
ソースコード
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 ]
s = " ".join(coordinate[zero:][::-1])
print(len(coordinate[zero:])-1)
print(s)
Konton7