結果

問題 No.1453 手助け
ユーザー convexineqconvexineq
提出日時 2021-05-05 21:28:35
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 1,440 ms
コンパイル使用メモリ 86,560 KB
実行使用メモリ 75,580 KB
最終ジャッジ日時 2023-10-11 15:26:46
合計ジャッジ時間 4,366 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
70,704 KB
testcase_01 AC 76 ms
71,004 KB
testcase_02 AC 74 ms
71,132 KB
testcase_03 AC 83 ms
75,488 KB
testcase_04 AC 74 ms
71,080 KB
testcase_05 AC 77 ms
75,580 KB
testcase_06 AC 77 ms
75,420 KB
testcase_07 AC 75 ms
75,300 KB
testcase_08 AC 73 ms
71,176 KB
testcase_09 AC 74 ms
70,768 KB
testcase_10 AC 75 ms
71,104 KB
testcase_11 AC 76 ms
71,044 KB
testcase_12 AC 72 ms
71,084 KB
testcase_13 AC 75 ms
71,044 KB
testcase_14 AC 73 ms
70,948 KB
testcase_15 AC 76 ms
75,460 KB
testcase_16 AC 73 ms
70,976 KB
testcase_17 AC 72 ms
71,072 KB
testcase_18 AC 75 ms
75,460 KB
testcase_19 AC 77 ms
75,372 KB
testcase_20 AC 76 ms
75,336 KB
testcase_21 AC 75 ms
71,064 KB
testcase_22 AC 75 ms
71,044 KB
testcase_23 AC 76 ms
70,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e = map(int,input().split())
ans = x = 0
for i in range(1,a*(b-c)+1):
    if i==1:
        x = d
    elif i%10==0 and e <= x:
        x = x-e
    ans += x            
print(ans)
0