[POI 2021/2022 R2] arm
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目背景
题目描述
初始时你有 个物品,你需要将物品的数量按若干次以下步骤增加到 个。
- 选择 :将物品数量存储进数据库中,耗费 的时间。
- 选择 :使物品数量增加等同于数据库中的数量,耗费 的时间。
初始时数据库为空,问最小操作次数。
输入格式
输入一行,共三个整数 $n,a,b\ (1 \leq n \leq 10^{18},1 \leq a,b \leq 10^9)$。
输出格式
输出最小的操作次数。
8 2 1
8
提示
样例解释:
初始时你有一个物品。
先进行一次扫描,耗费 时间。
然后打印 次,耗费 时间,数量增加到 。
继续进行扫描,耗费 时间。
最后再打印 次,耗费 时间,数量变为 。
子任务分配:
子任务编号 | 特殊性质 | 分值 |
---|---|---|
无特殊限制 |
子任务 为样例。
模拟赛一
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2025-9-12 7:30
- End at
- 2025-9-12 12:30
- Duration
- 5 hour(s)
- Host
- Partic.
- 13