結果
問題 | No.40 多項式の割り算 |
ユーザー |
![]() |
提出日時 | 2021-11-17 00:47:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 404 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 61,312 KB |
最終ジャッジ日時 | 2024-12-21 07:06:10 |
合計ジャッジ時間 | 3,546 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 32 |
ソースコード
d = int(input())A = list(map(int, input().split()))x = 0y = 0for i, a in enumerate(A):if i%2 == 0:x += ay += aelse:x += ay -= ab0 = A[0]b1 = (x-y)/2b2 = (x+y-2*b0)/2if b2 == 0:if b1 == 0:print(0)print(0)else:print(1)print(b0, b1)else:print(2)print(b0, b1, b2)