結果
| 問題 |
No.40 多項式の割り算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-01 11:10:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 82,032 KB |
| 実行使用メモリ | 65,836 KB |
| 最終ジャッジ日時 | 2024-10-09 22:50:23 |
| 合計ジャッジ時間 | 3,032 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 RE * 3 |
ソースコード
D = int(input())
A = list(map(int,input().split()))
B = [-1,0,1]
for i in range(3,D+1)[::-1]:
p = -A[i]
for j in range(3):
A[i-2+j] += B[j]*p
for i in range(4)[::-1]:
if A[i] != 0:
print(i)
print(*A[:i+1])
exit()
print(0)
print(0)