Source Code
#include <bits/stdc++.h>
using namespace st;

int main(){
    int k , t;
    cin >> k >> t ;
    if(k<t){
        cout << 0;
        return 0;
    }
    int c;
    
    c = k;
    c-=t;
    int x = (c/t) + 1;
    cout << x;
    
}
Copy
The Tortoise and the Hare hamzah_lababidi
GNU G++17
0 ms
0 KB
Compilation Error