欢迎使用本站,预祝练习时长两年半的选手们到成功! [本模块信息来自tem/def/head]

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)
    顶一下
    (0)
    0%
    踩一下
    (0)
    0%