結果
問題 | No.40 多項式の割り算 |
ユーザー |
👑 |
提出日時 | 2022-01-20 21:13:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 5,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 217 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 61,184 KB |
最終ジャッジ日時 | 2024-11-24 05:57:06 |
合計ジャッジ時間 | 2,835 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
d = int(input()) A = list(map(int, input().split())) for i in range(d, 2, -1): A[i - 2] += A[i] A[i] = 0 while A and A[-1] == 0: A.pop() if A: print(len(A) - 1) print(*A) else: print(0) print(0)