A300.苹果和虫子题解:
2026-02-09 09:15:05
发布于:四川
3阅读
0回复
0点赞
A300.苹果和虫子
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,y;
cin >> n >> x >> y;
if(y%x!=0){
cout<<n-y/x-1;
}else{
if(n-y/x<=0){
cout<<"0";
}else{
cout<<n-y/x;
}
}
return 0;
}
这里空空如也






有帮助,赞一个