大神们,SOS(第一五个点WA,第二个点RE)
查看原帖
大神们,SOS(第一五个点WA,第二个点RE)
746038
Minecraft__YYDS楼主2022/7/16 20:36
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
	int n,x,y,ans;
	scanf ("%d %d %d",&n,&x,&y);
	ans=n-y/x;
	if (y%x!=0) {
		ans-=1;
	}
	printf ("%d",ans);
	return 0;
}
2022/7/16 20:36
加载中...