結果
| 問題 | No.1453 手助け |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-29 23:29:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 467 bytes |
| 記録 | |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 21,544 KB |
| 実行使用メモリ | 15,996 KB |
| 最終ジャッジ日時 | 2026-07-30 05:58:01 |
| 合計ジャッジ時間 | 3,998 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)