結果

問題 No.51 やる気の問題
ユーザー lam6er
提出日時 2025-03-20 18:40:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 82,900 KB
実行使用メモリ 60,308 KB
最終ジャッジ日時 2025-03-20 18:40:35
合計ジャッジ時間 1,893 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

W = int(input())
D = int(input())

ans = 0
current_d = D

for _ in range(D):
    ans = W // (current_d ** 2)
    W -= ans
    current_d -= 1

print(ans)
0