結果

問題 No.40 多項式の割り算
コンテスト
ユーザー ytft
提出日時 2022-11-04 23:04:58
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 61 ms / 5,000 ms
+ 629µs
コード長 212 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 231 ms
コンパイル使用メモリ 95,852 KB
実行使用メモリ 83,636 KB
最終ジャッジ日時 2026-08-17 16:58:48
合計ジャッジ時間 4,532 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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)
0