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

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
3 ms
972 KB
Accepted