听灌水区大佬多
  • 板块灌水区
  • 楼主Carsonzhou
  • 当前回复4
  • 已保存回复5
  • 发布时间2024/7/18 10:16
  • 上次更新2024/7/18 11:05:37
查看原帖
听灌水区大佬多
1256962
Carsonzhou楼主2024/7/18 10:16

https://www.luogu.com.cn/record/166804918

代码:

#include<bits/stdc++.h>
using namespace std;
int main(){
	int zd=0,a,b,day;
	for(int i=1;i<=7;i++){
		cin>>a>>b;
		if(a+b>8 and a+b>zd){
			zd=a+b;
			day=i;
		}
	}
	cout<<day<<endl;
	return 0;
}

谁知道为啥错了一个测试点还是100

2024/7/18 10:16
加载中...