这个哪里错了,找半天没找到错哪里。(在线等,挺急的!!!)
查看原帖
这个哪里错了,找半天没找到错哪里。(在线等,挺急的!!!)
1031685
tomorrow1w楼主2023/10/7 20:45
#include <bits/stdc++.h>
using namespace std;
string a[200];
float b[200];
int c[200];
int main(){
	int n,d=0;
	cin >> n;
	for(int i=1;i<=n;i++){
		cin >> a[i] >> b[i] >> c[i];
	}
	for(int i=1;i<=n;i++){
		if(b[i]>=37.5&&c[i]==1){
			cout << a[i] << endl;
			d++;
		}
		else{
			break;
		}
	}
	cout << d;
	return 0;
}
2023/10/7 20:45
加载中...