結果

問題 No.51 やる気の問題
ユーザー ABKZABKZ
提出日時 2021-10-10 21:21:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 94 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 76,160 KB
最終ジャッジ日時 2023-10-12 18:45:57
合計ジャッジ時間 4,033 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,584 KB
testcase_01 AC 75 ms
71,424 KB
testcase_02 AC 77 ms
71,456 KB
testcase_03 AC 84 ms
75,748 KB
testcase_04 AC 79 ms
75,744 KB
testcase_05 AC 81 ms
75,932 KB
testcase_06 AC 81 ms
75,996 KB
testcase_07 AC 80 ms
75,916 KB
testcase_08 AC 80 ms
76,016 KB
testcase_09 AC 80 ms
75,772 KB
testcase_10 AC 77 ms
75,840 KB
testcase_11 AC 78 ms
75,764 KB
testcase_12 AC 78 ms
76,160 KB
testcase_13 AC 82 ms
76,028 KB
testcase_14 AC 79 ms
75,752 KB
testcase_15 AC 81 ms
75,972 KB
testcase_16 AC 78 ms
75,680 KB
testcase_17 AC 78 ms
75,820 KB
testcase_18 AC 79 ms
75,956 KB
testcase_19 AC 82 ms
76,032 KB
testcase_20 AC 81 ms
75,684 KB
testcase_21 AC 81 ms
75,820 KB
testcase_22 AC 81 ms
75,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for i in range(D, 1, -1):
    W -= W // (i ** 2)

print(W)
0