Source Code
#pragma GCC optimize ("O3")
#include <bits/stdc++.h>
using namespace std;

#define int long long
#define printv(x) for(int i : x) cout << i << " "; cout << endl;

#define fl(x) for(int i = 0 ; i < x.size(); i++ )
#define yes cout << "YES" << endl
#define no cout << "NO" << endl



void solve() {
    int h , t;
    cin >> h >> t;

    cout << ceil((h+ 1)*1.0 / t ) - 1 << endl;

}

int32_t main() {
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

//    int t ; cin >> t; while(t--) solve();
    solve();

    return 0;

}
Copy
The Tortoise and the Hare Shweiki
GNU G++17
3 ms
1.0 MB
Accepted