結果

問題 No.51 やる気の問題
ユーザー Makorominiris
提出日時 2016-05-14 22:04:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 176 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-10-06 02:50:13
合計ジャッジ時間 1,460 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
W = int(input())
D = int(input())
def motivate(w, d):
    if d <= 1:
        print(w)
    else:
        motivate(w - math.floor(w / (d ** 2)), d - 1)
motivate(W, D)
0