結果
| 問題 |
No.40 多項式の割り算
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-02-22 02:59:41 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 260 bytes |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 7,040 KB |
| 最終ジャッジ日時 | 2024-06-23 21:49:13 |
| 合計ジャッジ時間 | 1,693 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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