結果

問題 No.51 やる気の問題
ユーザー 9V72n9V72n
提出日時 2020-04-04 10:24:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 204 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-09-16 05:28:36
合計ジャッジ時間 2,227 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,928 KB
testcase_01 AC 17 ms
7,804 KB
testcase_02 AC 15 ms
7,828 KB
testcase_03 AC 18 ms
7,924 KB
testcase_04 AC 17 ms
7,836 KB
testcase_05 AC 55 ms
7,804 KB
testcase_06 AC 42 ms
7,788 KB
testcase_07 AC 42 ms
7,852 KB
testcase_08 AC 31 ms
7,956 KB
testcase_09 AC 71 ms
7,808 KB
testcase_10 AC 34 ms
7,748 KB
testcase_11 AC 30 ms
7,772 KB
testcase_12 AC 45 ms
7,768 KB
testcase_13 AC 48 ms
7,732 KB
testcase_14 AC 39 ms
7,840 KB
testcase_15 AC 62 ms
7,952 KB
testcase_16 AC 29 ms
7,800 KB
testcase_17 AC 21 ms
7,784 KB
testcase_18 AC 61 ms
7,768 KB
testcase_19 AC 62 ms
7,836 KB
testcase_20 AC 44 ms
7,768 KB
testcase_21 AC 20 ms
7,784 KB
testcase_22 AC 70 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

W = int(input())
D = int(input())
work = W
day = D
motiv = 0
result = 0
while day > 0:
    motiv = int(work/day**2)
    if day > 0:
        result = work
    work = work - motiv
    day -= 1
print(result)
0