Source Code
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;

int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);

    int h,t;
    cin>>h>>t;
    int temp=t;

    int ans=0;
    while(h>=t){
        t+=temp;
        ans++;
    }

    cout<<ans;
}
Copy
The Tortoise and the Hare YazanIstatiyeh
GNU G++17
3 ms
1.0 MB
Accepted