結果

問題 No.51 やる気の問題
ユーザー _KingdomOfMoray
提出日時 2019-11-20 09:16:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 221 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-05 16:23:40
合計ジャッジ時間 1,652 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

params = [int(input()) for i in range(2)]

w = params[0]
d = params[1]

w_rest = w
for i in range(d):
    today = d - i
    w_today = math.floor(w_rest / (today * today))
    w_rest = w_rest - w_today

print(int(w_today))
0