結果

問題 No.51 やる気の問題
ユーザー ytftytft
提出日時 2022-11-06 01:31:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 75,988 KB
最終ジャッジ日時 2023-09-27 00:33:49
合計ジャッジ時間 3,126 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,188 KB
testcase_01 AC 68 ms
71,120 KB
testcase_02 AC 67 ms
71,172 KB
testcase_03 AC 70 ms
75,672 KB
testcase_04 AC 75 ms
75,748 KB
testcase_05 AC 74 ms
75,620 KB
testcase_06 AC 73 ms
75,956 KB
testcase_07 AC 72 ms
75,856 KB
testcase_08 AC 72 ms
75,772 KB
testcase_09 AC 75 ms
75,748 KB
testcase_10 AC 72 ms
75,540 KB
testcase_11 AC 73 ms
75,956 KB
testcase_12 AC 73 ms
75,752 KB
testcase_13 AC 72 ms
75,676 KB
testcase_14 AC 75 ms
75,592 KB
testcase_15 AC 74 ms
75,724 KB
testcase_16 AC 72 ms
75,892 KB
testcase_17 AC 73 ms
75,988 KB
testcase_18 AC 74 ms
75,916 KB
testcase_19 AC 73 ms
75,540 KB
testcase_20 AC 73 ms
75,904 KB
testcase_21 AC 71 ms
75,856 KB
testcase_22 AC 74 ms
75,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
W,D=[int(input()) for i in range(2)]
while D>1:
	W,D=max(0,W-W//(D**2)),D-1
print(W)
0