結果
| 問題 | No.1453 手助け |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-21 20:48:32 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 84,724 KB |
| 実行使用メモリ | 59,824 KB |
| 最終ジャッジ日時 | 2026-04-08 23:22:31 |
| 合計ジャッジ時間 | 1,970 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)