Source Code
#include <iostream>
using namespace std;

int main(){
 int h,t,n=0,x;
 cin >> h;
 cin >> t;
 x=(t*n);

 while(x<=h){
 	n++;
 	x=(t*n);
 }
 cout << n-1;
	return 0;
}
Copy
The Tortoise and the Hare Stevejobs
GNU G++17
3 ms
944 KB
Accepted