Source Code

#include <iostream>
using namespace std;
int main()
{
		int h, t, count = 0 , base;
		cin >> h >> t;
		base = t;
		if ((1 <= h && h <= 100) && (1 <= t && t <= 100)){
			while (h >= t) {
				t += base;
				count++;
			}
			cout << count;	
		}

}
Copy
The Tortoise and the Hare 5hafiq
GNU G++14
3 ms
936 KB
Accepted