結果

問題 No.51 やる気の問題
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-07-11 23:12:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 95 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 76,100 KB
最終ジャッジ日時 2023-09-14 20:25:40
合計ジャッジ時間 3,300 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,528 KB
testcase_01 AC 73 ms
71,364 KB
testcase_02 AC 73 ms
71,416 KB
testcase_03 AC 75 ms
75,940 KB
testcase_04 AC 75 ms
75,736 KB
testcase_05 AC 76 ms
76,092 KB
testcase_06 AC 76 ms
76,064 KB
testcase_07 AC 76 ms
75,868 KB
testcase_08 AC 77 ms
75,740 KB
testcase_09 AC 78 ms
76,056 KB
testcase_10 AC 77 ms
76,080 KB
testcase_11 AC 76 ms
76,100 KB
testcase_12 AC 75 ms
75,980 KB
testcase_13 AC 75 ms
75,712 KB
testcase_14 AC 74 ms
75,736 KB
testcase_15 AC 75 ms
75,892 KB
testcase_16 AC 75 ms
75,856 KB
testcase_17 AC 75 ms
75,872 KB
testcase_18 AC 76 ms
75,848 KB
testcase_19 AC 75 ms
75,868 KB
testcase_20 AC 74 ms
76,068 KB
testcase_21 AC 76 ms
76,068 KB
testcase_22 AC 77 ms
75,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w = int(input())
d = int(input())

for i in range(d-1):
    w -= w//((d-i)**2)
print(max(0, w))
0