Source Code
#include <bits/stdc++.h>

using namespace std;

#define all(x) (x).begin(), (x).end()
#define fast ios::sync_with_stdio(false);cin.tie(0);
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());


int main(){
    fast
    int h , t ; cin >> h >> t ;
    int ans = 0 ;
    while( (ans+1) * t <= h ) ans++ ;
    cout << ans << '\n';
}

/*
   1- Look at base case (n=1,m=1)
   2- Overflow 
   3- Use assert
*/
Copy
The Tortoise and the Hare Warawreh
GNU G++17
5 ms
1.1 MB
Accepted