80分求助
查看原帖
80分求助
421645
上班族bo良ki影楼主2021/9/26 12:41

有一个RE

#include <iostream>
using namespace std;
int main()
{
	int n,x,y,s,c;
	cin>>n>>x>>y;
	c=y/x;
	if(y<x*n)
	{
		if(y%x!=0)
		{
		s=n-c-1;;
		}
		else
		{
		s=n-c;
		}
		cout<<s<<endl;
	}
	else
	{
		cout<<0<<endl;
	}
	return 0;
}
2021/9/26 12:41
加载中...