結果

問題 No.40 多項式の割り算
ユーザー ytftytft
提出日時 2022-11-04 23:04:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 212 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 76,024 KB
最終ジャッジ日時 2023-09-26 01:34:46
合計ジャッジ時間 4,785 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,044 KB
testcase_01 AC 72 ms
71,300 KB
testcase_02 AC 74 ms
71,388 KB
testcase_03 AC 72 ms
71,348 KB
testcase_04 AC 76 ms
75,696 KB
testcase_05 AC 75 ms
75,612 KB
testcase_06 AC 77 ms
75,716 KB
testcase_07 AC 76 ms
75,700 KB
testcase_08 AC 73 ms
71,048 KB
testcase_09 AC 76 ms
75,564 KB
testcase_10 AC 78 ms
76,024 KB
testcase_11 AC 77 ms
75,668 KB
testcase_12 AC 76 ms
75,876 KB
testcase_13 AC 76 ms
75,828 KB
testcase_14 AC 74 ms
75,776 KB
testcase_15 AC 74 ms
75,580 KB
testcase_16 AC 75 ms
75,616 KB
testcase_17 AC 74 ms
75,580 KB
testcase_18 AC 75 ms
75,756 KB
testcase_19 AC 73 ms
75,688 KB
testcase_20 AC 75 ms
75,828 KB
testcase_21 AC 76 ms
75,668 KB
testcase_22 AC 77 ms
75,628 KB
testcase_23 AC 79 ms
75,628 KB
testcase_24 AC 77 ms
75,828 KB
testcase_25 AC 70 ms
71,296 KB
testcase_26 AC 71 ms
71,404 KB
testcase_27 AC 73 ms
71,224 KB
testcase_28 AC 73 ms
71,196 KB
testcase_29 AC 73 ms
71,212 KB
testcase_30 AC 74 ms
71,352 KB
testcase_31 AC 74 ms
71,444 KB
testcase_32 AC 72 ms
71,332 KB
testcase_33 AC 73 ms
71,208 KB
testcase_34 AC 71 ms
71,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
N=int(input())
D=list(map(int,input().split()))
ans=[D[0],sum(D[1::2]),sum(D[2::2])]
while len(ans)>1 and ans[-1]==0:
	ans.pop()
print(len(ans)-1)
print(*ans)
0