結果

問題 No.40 多項式の割り算
ユーザー dangodango
提出日時 2023-06-16 20:21:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 86,988 KB
実行使用メモリ 76,440 KB
最終ジャッジ日時 2023-09-06 17:42:07
合計ジャッジ時間 4,471 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,212 KB
testcase_01 AC 69 ms
71,284 KB
testcase_02 AC 69 ms
71,248 KB
testcase_03 AC 69 ms
71,368 KB
testcase_04 AC 77 ms
76,108 KB
testcase_05 AC 74 ms
76,252 KB
testcase_06 AC 75 ms
76,236 KB
testcase_07 AC 74 ms
76,148 KB
testcase_08 AC 68 ms
71,252 KB
testcase_09 AC 74 ms
76,316 KB
testcase_10 AC 72 ms
76,068 KB
testcase_11 AC 73 ms
76,140 KB
testcase_12 AC 73 ms
76,192 KB
testcase_13 AC 73 ms
76,440 KB
testcase_14 AC 74 ms
76,388 KB
testcase_15 AC 73 ms
76,156 KB
testcase_16 AC 74 ms
76,112 KB
testcase_17 AC 73 ms
76,064 KB
testcase_18 AC 73 ms
76,192 KB
testcase_19 AC 74 ms
76,124 KB
testcase_20 AC 73 ms
76,284 KB
testcase_21 AC 73 ms
76,184 KB
testcase_22 AC 74 ms
76,144 KB
testcase_23 AC 73 ms
76,248 KB
testcase_24 AC 74 ms
76,140 KB
testcase_25 AC 69 ms
71,252 KB
testcase_26 AC 70 ms
71,280 KB
testcase_27 AC 69 ms
71,372 KB
testcase_28 AC 69 ms
71,244 KB
testcase_29 AC 72 ms
71,464 KB
testcase_30 AC 77 ms
71,424 KB
testcase_31 AC 75 ms
71,400 KB
testcase_32 AC 73 ms
71,108 KB
testcase_33 AC 70 ms
71,356 KB
testcase_34 AC 68 ms
71,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

D = int(input())
A = list(map(int,input().split()))
for i in range(D, 2, -1):
    A[i - 2] += A[i]
K = min(len(A) - 1, 2)
while K and A[K] == 0:
    K -= 1
print(K)
print(*A[:K + 1])
0