結果

問題 No.51 やる気の問題
ユーザー otsunekootsuneko
提出日時 2021-05-21 20:48:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 122 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 59,112 KB
最終ジャッジ日時 2024-04-18 14:18:08
合計ジャッジ時間 1,914 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,840 KB
testcase_01 AC 38 ms
53,128 KB
testcase_02 AC 36 ms
52,072 KB
testcase_03 AC 40 ms
57,716 KB
testcase_04 AC 39 ms
58,060 KB
testcase_05 AC 41 ms
58,200 KB
testcase_06 AC 40 ms
58,424 KB
testcase_07 AC 39 ms
57,912 KB
testcase_08 AC 40 ms
57,592 KB
testcase_09 AC 40 ms
58,452 KB
testcase_10 AC 40 ms
58,316 KB
testcase_11 AC 41 ms
58,520 KB
testcase_12 AC 41 ms
57,564 KB
testcase_13 AC 40 ms
59,112 KB
testcase_14 AC 42 ms
57,596 KB
testcase_15 AC 40 ms
57,984 KB
testcase_16 AC 39 ms
57,716 KB
testcase_17 AC 38 ms
58,500 KB
testcase_18 AC 41 ms
58,200 KB
testcase_19 AC 42 ms
58,780 KB
testcase_20 AC 41 ms
57,924 KB
testcase_21 AC 39 ms
57,588 KB
testcase_22 AC 41 ms
58,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

work = 0
for i in range(D):
    work = W//((D-i)**2)
    W -= work

print(work)
0