Source Code
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define p1 2*p
#define p2 p1+1
#define ll long long
#define pb push_back
#define LFT p1,L,Mid
#define pf push_front
#define Mid ((L+R)/2)
#define RGT p2,Mid+1,R
#define pi pair<int,int>
#define pii pair<pi,pi>
#define deb(x) cout<<#x<<"="<<x<<endl
#define go ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
int a,b;
int main()
{
    go;
    cin>>a>>b;
    if(b>a)
        cout<<0;
    else
    {
        int dif=(a-b+1);
        cout<<(dif+b-1)/b;
    }
    return 0;
}
Copy
The Tortoise and the Hare Grapeee
GNU G++17
3 ms
972 KB
Accepted