結果

問題 No.3002 多項式の割り算 〜easy〜
ユーザー anonymously
提出日時 2025-01-17 21:25:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 132 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2025-01-17 21:25:24
合計ジャッジ時間 1,960 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
P = [0] * B + [A]
while len(P) > 2:
    a = P.pop()
    P[-1] -= a
    P[-2] -= a
print(P[1], P[0])
0