結果

問題 No.51 やる気の問題
ユーザー KudeKude
提出日時 2020-09-07 01:28:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 108 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 76,040 KB
最終ジャッジ日時 2023-08-19 14:36:49
合計ジャッジ時間 3,250 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,296 KB
testcase_01 AC 72 ms
71,240 KB
testcase_02 AC 71 ms
71,200 KB
testcase_03 AC 76 ms
75,532 KB
testcase_04 AC 77 ms
75,532 KB
testcase_05 AC 76 ms
75,584 KB
testcase_06 AC 77 ms
75,516 KB
testcase_07 AC 77 ms
75,580 KB
testcase_08 AC 75 ms
75,664 KB
testcase_09 AC 76 ms
75,780 KB
testcase_10 AC 78 ms
75,848 KB
testcase_11 AC 76 ms
75,584 KB
testcase_12 AC 75 ms
75,772 KB
testcase_13 AC 75 ms
75,760 KB
testcase_14 AC 76 ms
75,988 KB
testcase_15 AC 76 ms
75,528 KB
testcase_16 AC 75 ms
75,680 KB
testcase_17 AC 75 ms
75,848 KB
testcase_18 AC 77 ms
76,040 KB
testcase_19 AC 74 ms
75,940 KB
testcase_20 AC 76 ms
75,728 KB
testcase_21 AC 76 ms
75,628 KB
testcase_22 AC 75 ms
75,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w = int(input())
D = int(input())
for d in range(D, 0, -1):
    load = w // d ** 2
    w -= load
print(load)
0