結果
| 問題 | No.40 多項式の割り算 |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-02-22 02:59:41 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 77,172 KB |
| 最終ジャッジ日時 | 2025-12-03 14:06:52 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 RE * 1 |
ソースコード
D=int(raw_input())
a = map(int, raw_input().split())
for i in range(len(a)-1,2,-1):
a[i-2] += a[i]
a[i] = 0
d=0
for i in range( 2, -1,-1 ):
if (a[i]!=0 or i==0):
print i
d=i+1
break
for i in range(d):
print a[i],
print
yaoshimax