結果

問題 No.51 やる気の問題
ユーザー convexineqconvexineq
提出日時 2020-12-02 15:38:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 76,156 KB
最終ジャッジ日時 2023-10-11 11:28:01
合計ジャッジ時間 3,133 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,536 KB
testcase_01 AC 71 ms
71,456 KB
testcase_02 AC 72 ms
71,416 KB
testcase_03 AC 74 ms
75,792 KB
testcase_04 AC 75 ms
75,696 KB
testcase_05 AC 76 ms
75,712 KB
testcase_06 AC 75 ms
75,748 KB
testcase_07 AC 75 ms
75,864 KB
testcase_08 AC 76 ms
75,760 KB
testcase_09 AC 75 ms
75,704 KB
testcase_10 AC 74 ms
75,844 KB
testcase_11 AC 74 ms
76,156 KB
testcase_12 AC 76 ms
75,832 KB
testcase_13 AC 74 ms
75,756 KB
testcase_14 AC 76 ms
75,608 KB
testcase_15 AC 76 ms
75,876 KB
testcase_16 AC 75 ms
75,884 KB
testcase_17 AC 74 ms
75,824 KB
testcase_18 AC 76 ms
75,844 KB
testcase_19 AC 77 ms
75,552 KB
testcase_20 AC 76 ms
75,756 KB
testcase_21 AC 74 ms
75,752 KB
testcase_22 AC 76 ms
75,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
read = sys.stdin.read
readline = sys.stdin.readline

#n = int(readline())
w, = map(int,readline().split())
d, = map(int,readline().split())
for i in range(d-1):
    w -= w//((d-i)*(d-i))
print(w)
0