Source Code
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <math.h>
#include <vector>
#include <set>
#include <map>
using namespace std;	

int main() {
	int t, h, x, ans;
	cin >> h >> t;
	ans = 0;
	x = t;
	while (t <= h) {
		t += x;
		ans++;
	}
	cout << ans;
	return 0;
}







Copy
The Tortoise and the Hare Sarah
GNU G++17
3 ms
860 KB
Accepted