Source Code
#include <iostream>
using namespace std;

int main() {
	int h,t;
	cin>>h>>t;
	if(h<t) {
		cout<<0<<endl;
		return 0;
	}
	
	int ans=0;
	int temp=t;
	while(temp<h+1){
		temp+=t;
		ans++;
	}
	cout<<endl<<ans<<endl;
	return 0;
}
Copy
The Tortoise and the Hare Razanaws
GNU G++17
2 ms
940 KB
Accepted