Source Code
#include<iostream>
using namespace std;
 
int main(){
	int h, t;
	cin >> h;
	cin >> t;
	int counter = 0;
	int tor = t;
	if (t <= h) {
		for (int i = 0; i < 100; i++) {
			tor = tor+t;
			counter++;
			if (tor > h) break;
		}
		cout << counter;
	}
	else
		cout << 0;

}
Copy
The Tortoise and the Hare salem
GNU G++17
3 ms
952 KB
Accepted