#YF1011. 高强度作业,低强度代码
高强度作业,低强度代码
Background:
The holiday and are very beautiful, but the homework is not beautiful. Since has too much homework, and is a student who is willing to enjoy it, so I invited to do it together.
Problem Description:
's homework has pages (both sides and back). can write sides every minute, and can write sides every minute. Because the side effects of doing homework are too strong, two people will write homework slower and slower, reduce the speed a little per minute, reduce the speed points per minute is a little more than a minute, until the speed is zero. When can they finish their homework.
Input Format:
A total of two rows, the first row of a positive integer , representing the total number of pages of the job. The next row, two positive integers and , represents the number of assignments written per minute by and .
output format:
A positive integer indicates the time it takes two people to finish the job (in min), and can output "OUT".(Note: If the time required is small, consolidate up.)
Input / output sample:
Enter # 1:
10
4 8
output #1:
2min
统计
相关
在下列比赛中: