結果

問題 No.1453 手助け
ユーザー roarisroaris
提出日時 2021-03-31 21:49:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 87,296 KB
実行使用メモリ 77,004 KB
最終ジャッジ日時 2023-08-22 00:51:45
合計ジャッジ時間 4,023 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,324 KB
testcase_01 AC 94 ms
71,644 KB
testcase_02 AC 92 ms
71,592 KB
testcase_03 AC 103 ms
76,836 KB
testcase_04 AC 93 ms
71,436 KB
testcase_05 AC 96 ms
77,004 KB
testcase_06 AC 97 ms
76,884 KB
testcase_07 AC 95 ms
76,752 KB
testcase_08 AC 89 ms
71,428 KB
testcase_09 AC 91 ms
71,752 KB
testcase_10 AC 92 ms
71,476 KB
testcase_11 AC 94 ms
71,708 KB
testcase_12 AC 93 ms
71,476 KB
testcase_13 AC 91 ms
71,528 KB
testcase_14 AC 92 ms
71,508 KB
testcase_15 AC 96 ms
76,944 KB
testcase_16 AC 91 ms
71,620 KB
testcase_17 AC 91 ms
71,700 KB
testcase_18 AC 96 ms
76,696 KB
testcase_19 AC 98 ms
76,972 KB
testcase_20 AC 99 ms
76,452 KB
testcase_21 AC 92 ms
71,620 KB
testcase_22 AC 92 ms
71,600 KB
testcase_23 AC 93 ms
71,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

A, B, C, D, E = map(int, input().split())
now = D
ans = 0

for i in range(A*(B-C)):
    ans += now
    
    if (i+2)%10==0 and E<=now:
        now = now-E

print(ans)
0