求大佬为什么这还能错
查看原帖
求大佬为什么这还能错
1303746
Internet_Explorer_14楼主2024/3/17 14:17
#include<iostream>
int main(){
	int a,b,c,max=0;
	for(int t=1;t<8;t++){
		std::cin>>a>>b;
		if(a+b>8)if(a+b>max)max=a+b,c=t;
	}
	std::cout<<c;
	return 0;
}
2024/3/17 14:17
加载中...