結果
| 問題 | No.40 多項式の割り算 |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-11-04 23:04:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 85,764 KB |
| 実行使用メモリ | 138,804 KB |
| 最終ジャッジ日時 | 2026-04-02 12:31:14 |
| 合計ジャッジ時間 | 2,247 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
ytft