結果
問題 | No.40 多項式の割り算 |
ユーザー |
![]() |
提出日時 | 2017-08-02 06:42:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-10-11 05:47:42 |
合計ジャッジ時間 | 2,329 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 30 |
ソースコード
# your code goes hereD=int(input())a=[int (i) for i in input (). split ()]while len(a)>3:a[2]+=a[0]a.pop(0)# print (a)print (len(a)-1)i=len(a)-1b=""while i>=0:b+=str(a[i])+" "i-=1if a[0]==0 and a[1]==0 and a[2]==0:b="0"print (b)