80分,第四个测试点过不了
查看原帖
80分,第四个测试点过不了
411060
joker__wang楼主2022/11/10 17:38
#include<iostream>
#include<cstdio> 
using namespace std;
int main()
{
	int a,b,c,d;
	cin>>a>>b>>c;
	if(b==0)
	{
		cout<<0;
		return 0;
	}
	d=c/b;
	if(a-d<0)
	{
		cout<<0;
		return 0;
	}
	cout<<a-d;
} 
2022/11/10 17:38
加载中...