Source Code
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
 
#define pb push_back
#define mk make_pair
#define ff first
#define ss second
#define fast ios::sync_with_stdio(false);cin.tie(0);
 
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef tree<int, null_type, less<int>,
        rb_tree_tag, tree_order_statistics_node_update> ordered_set;


int main(){
	fast
	
	
	int a,b;
	cin>>a>>b;
	int v = a/b + 1;
	cout<<max(0,v-1);
	
	
return 0;
}
Copy
The Tortoise and the Hare Bahaa
GNU G++17
2 ms
956 KB
Accepted