太玄学了!
  • 板块灌水区
  • 楼主CodeAnythingNow
  • 当前回复5
  • 已保存回复5
  • 发布时间2024/7/12 17:52
  • 上次更新2024/7/12 19:35:11
查看原帖
太玄学了!
1135135
CodeAnythingNow楼主2024/7/12 17:52

code:

#include<bits/stdc++.h>
using namespace std;

int m, t, s;

int main(){
	cin >> m >> t >> s;
	int n;
	if(!t){
		cout<<0;
		return 0;
	}
	n = s/t;
	if (s%t) n++;
	cout << max(0,m-n);
	return 0;
}

链接题目:P5709

另一题目:P5711

代码没改,第二题 60 pts.

什么水数据

2024/7/12 17:52
加载中...