結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-21 20:48:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 264 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 82,572 KB |
| 実行使用メモリ | 58,624 KB |
| 最終ジャッジ日時 | 2024-09-20 12:09:51 |
| 合計ジャッジ時間 | 1,835 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
a,b,c,d,e = map(int,input().split())
import sys
if b == c:
print(0)
exit()
num = a * (b - c)
ans = d
now = d
for i in range(2,num + 1):
if i % 10 != 0:
ans += now
else:
if now >= e:
now -= e
ans += now
print(ans)