Source Code
#include <bits/stdc++.h>
#define ll long long
#define all(x) x.begin(),x.end()
#define answer(x) cout << (x ? "YES\n" : "NO\n")
#define test ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int T; cin >> T; while(T--)
#define go ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define F first
#define S second
using namespace std;

ll h, t; 

int main()
{
	cin >> h >> t; 
	
	for(ll i=0 ; i<1000 ; i++)
	{
		ll k = t + (i * t); 
		if(k > h)
			return cout << i, 0; 
	}
}



Copy
The Tortoise and the Hare MuhammedAlajam
GNU G++17
3 ms
964 KB
Accepted