結果

問題 No.51 やる気の問題
ユーザー メルちゃんメルちゃん
提出日時 2020-11-18 16:14:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 116 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 76,440 KB
最終ジャッジ日時 2023-09-30 15:04:22
合計ジャッジ時間 3,238 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,376 KB
testcase_01 AC 76 ms
71,416 KB
testcase_02 AC 72 ms
71,268 KB
testcase_03 AC 77 ms
76,196 KB
testcase_04 AC 78 ms
76,336 KB
testcase_05 AC 80 ms
76,192 KB
testcase_06 AC 81 ms
76,072 KB
testcase_07 AC 81 ms
76,296 KB
testcase_08 AC 81 ms
76,196 KB
testcase_09 AC 80 ms
76,440 KB
testcase_10 AC 81 ms
76,352 KB
testcase_11 AC 79 ms
76,092 KB
testcase_12 AC 80 ms
76,200 KB
testcase_13 AC 82 ms
76,336 KB
testcase_14 AC 79 ms
76,136 KB
testcase_15 AC 80 ms
76,148 KB
testcase_16 AC 80 ms
76,020 KB
testcase_17 AC 80 ms
76,240 KB
testcase_18 AC 79 ms
76,316 KB
testcase_19 AC 82 ms
76,044 KB
testcase_20 AC 81 ms
76,268 KB
testcase_21 AC 79 ms
76,324 KB
testcase_22 AC 81 ms
76,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

W = int(input())
D = int(input())
ans = 0
for i in range(1,D+1):
    ans = int(W/(D-i+1)**2)
    W -= ans
print(ans)
0