Module: (C++) Workshop - 1 "Sofia the first". Linear Algorithms

Problem

7
/11

Squirrel with nuts

Problem

Squirrel lives on a very high tree at an altitude of h miles. He wants to pick up a nut in his hollow. During the day, he rises with a nut a miles, and during the night, the nut rolls down bmiles. On what day does the squirrel raise the nut to its hollow?

Input format
Given positive integer numbers h, a, b (0 < n <= 100, 0 < b < a < = 100).