結果
| 問題 | No.40 多項式の割り算 |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-27 17:53:32 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 95 ms / 5,000 ms |
| + 640µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,996 KB |
| 最終ジャッジ日時 | 2026-08-27 02:54:09 |
| 合計ジャッジ時間 | 5,765 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
D,*A = map(int,read().split())
A += [0,0,0,0,0]
A[1] += sum(A[3::2])
A[2] += sum(A[4::2])
A = A[:3]
while A and A[-1] == 0:
A.pop()
if not A:
print(0)
print(0)
else:
print(len(A) - 1)
print(*A)
maspy