P5709谁能帮助一下蒟蒻……这个错在哪里了?
  • 板块学术版
  • 楼主J_Brendan
  • 当前回复9
  • 已保存回复9
  • 发布时间2021/8/30 17:47
  • 上次更新2023/10/30 03:29:31
查看原帖
P5709谁能帮助一下蒟蒻……这个错在哪里了?
556904
J_Brendan楼主2021/8/30 17:47
#include <bits/stdc++.h>
using namespace std;
int main(){
	int m,t,s;
	scanf("%d%d%d",&m,&t,&s);
	if (t==0)
	  printf("%d",0);
	if (s/t>=m)
	  printf("%d",0);
	else
	  printf("%d",(m-(s/t)));
	return 0;
}
2021/8/30 17:47
加载中...