結果

問題 No.40 多項式の割り算
ユーザー kutsutama
提出日時 2018-03-18 00:01:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 255 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-12-24 02:19:25
合計ジャッジ時間 2,121 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 10 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

d = int(input())
a = [int(x) for x in input().split()]

for i in reversed(range(3, len(a))):
    a[i - 2] += a[i]
    a[i] = 0

dd = 0
for i in range(4):
    if a[i] > 0:
        dd = i
print(dd)
print(' '.join([str(x) for x in a[:dd + 1]]))
0