結果

問題 No.51 やる気の問題
ユーザー ohanaohana
提出日時 2023-10-20 11:07:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 91 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 81,992 KB
実行使用メモリ 60,132 KB
最終ジャッジ日時 2024-09-20 06:41:19
合計ジャッジ時間 1,846 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,480 KB
testcase_01 AC 39 ms
52,272 KB
testcase_02 AC 34 ms
52,120 KB
testcase_03 AC 37 ms
59,384 KB
testcase_04 AC 37 ms
58,568 KB
testcase_05 AC 37 ms
58,916 KB
testcase_06 AC 38 ms
58,896 KB
testcase_07 AC 37 ms
59,180 KB
testcase_08 AC 37 ms
58,776 KB
testcase_09 AC 38 ms
60,132 KB
testcase_10 AC 38 ms
59,496 KB
testcase_11 AC 39 ms
58,828 KB
testcase_12 AC 40 ms
58,828 KB
testcase_13 AC 39 ms
58,432 KB
testcase_14 AC 39 ms
58,728 KB
testcase_15 AC 39 ms
58,380 KB
testcase_16 AC 39 ms
58,536 KB
testcase_17 AC 38 ms
58,976 KB
testcase_18 AC 40 ms
58,352 KB
testcase_19 AC 38 ms
59,620 KB
testcase_20 AC 38 ms
58,408 KB
testcase_21 AC 38 ms
59,600 KB
testcase_22 AC 38 ms
59,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

while d > 1:
    w -= int(w / d**2)
    d -= 1
print(w)
0