結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-29 23:29:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 467 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-26 02:08:24 |
| 合計ジャッジ時間 | 1,691 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 13 |
ソースコード
a, b, c, d, e = list(map(int, input().split()))
come = b - c
buy = come * a
sum = 0
if come == 0:
print(0)
else:
x = 0
for i in range(buy):
res = 0
if i == 0:
res = d
else:
if i % 10 != 0:
res = x
elif i % 10 == 0 and e <= x:
res = x - e
elif i % 10 == 0 and e >= x:
res = x
x = res
sum += res
print(sum)