結果
| 問題 | No.40 多項式の割り算 |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-02-22 02:59:41 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 81,408 KB |
| 実行使用メモリ | 82,432 KB |
| 最終ジャッジ日時 | 2026-07-17 10:14:24 |
| 合計ジャッジ時間 | 4,180 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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