結果
| 問題 | No.40 多項式の割り算 | 
| コンテスト | |
| ユーザー |  ytft | 
| 提出日時 | 2022-11-04 23:04:58 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 47 ms / 5,000 ms | 
| コード長 | 212 bytes | 
| コンパイル時間 | 353 ms | 
| コンパイル使用メモリ | 82,560 KB | 
| 実行使用メモリ | 60,032 KB | 
| 最終ジャッジ日時 | 2024-07-18 20:59:01 | 
| 合計ジャッジ時間 | 3,230 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
import sys input=lambda:sys.stdin.readline().rstrip() N=int(input()) D=list(map(int,input().split())) ans=[D[0],sum(D[1::2]),sum(D[2::2])] while len(ans)>1 and ans[-1]==0: ans.pop() print(len(ans)-1) print(*ans)
