結果
| 問題 | No.1453 手助け |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 21:05:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 370 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-15 09:10:21 |
| 合計ジャッジ時間 | 1,987 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 18 |
ソースコード
a, b, c, d, e = map(int, input().split())
num = b - c
now = d
if num == 0:
exit(print(0))
ans = d
for i in range(1, num):
if (i + 1) % 10 != 0: ans += now
else:
if e <= now: now -= e; ans += now
else: ans += now
print(ans)