1038:苹果和虫子
时间:2024-05-27 15:29
作者:admin
点击:次
#include iostream#include cmathusing namespace std;int main(){int n,x,y;cinnxy;if(y%x==0) n-=y/x;else n-=y/x+1;if(n0) cout0;else coutn;return 0;}
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n,x,y;
cin>>n>>x>>y;
if(y%x==0) n-=y/x;
else n-=y/x+1;
if(n<0) cout<<0;
else cout<<n;
return 0;
}
(责任编辑:admin) |