結果

問題 No.51 やる気の問題
ユーザー DrDrpilotDrDrpilot
提出日時 2022-06-24 12:50:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 116 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 82,348 KB
実行使用メモリ 66,632 KB
最終ジャッジ日時 2024-04-25 18:11:00
合計ジャッジ時間 1,852 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,932 KB
testcase_01 AC 34 ms
52,740 KB
testcase_02 AC 33 ms
53,408 KB
testcase_03 AC 38 ms
59,344 KB
testcase_04 AC 38 ms
58,728 KB
testcase_05 AC 39 ms
63,596 KB
testcase_06 AC 40 ms
62,436 KB
testcase_07 AC 39 ms
62,984 KB
testcase_08 AC 39 ms
61,212 KB
testcase_09 AC 45 ms
66,632 KB
testcase_10 AC 41 ms
60,812 KB
testcase_11 AC 39 ms
60,596 KB
testcase_12 AC 42 ms
62,432 KB
testcase_13 AC 43 ms
62,172 KB
testcase_14 AC 41 ms
62,744 KB
testcase_15 AC 43 ms
64,740 KB
testcase_16 AC 39 ms
61,392 KB
testcase_17 AC 38 ms
59,012 KB
testcase_18 AC 45 ms
66,176 KB
testcase_19 AC 44 ms
65,836 KB
testcase_20 AC 39 ms
62,432 KB
testcase_21 AC 39 ms
58,688 KB
testcase_22 AC 43 ms
65,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w=int(input())
d=int(input())
ans=[]
for i in range(d,0,-1):
    ans.append(w//(i**2))
    w-=ans[-1]
print(ans[-1])
0