Run ID:70494

提交时间:2024-04-14 15:03:40

#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(y%x<=1){ y+1; }else{ y; } if(n-y/x){ cout<<n-y/x-1; }else{ cout<<n-y/x+1; } return 0; }