#BS0000064. Nhiệm vụ rất dễ (Very Easy Task)
Nhiệm vụ rất dễ (Very Easy Task)
Very Easy Task
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
There is initially one original sheet and additional copies are required. Copier 1 needs seconds per copy and copier 2 needs seconds. A copier needs an existing sheet as source; after the first copy exists, both copiers may work simultaneously. Find the minimum time to produce copies.
Input
The only line contains .
Output
Print the minimum number of seconds.
Subtasks
- Subtask 1 — 20%: .
- Subtask 2 — 30%: .
- Subtask 3 — 50%: , .
Example
Input
4 1 1
Output
3
Explanation
The first copy takes one second, after which both copiers can work in parallel.