20分求解
查看原帖
20分求解
1073122
Accept__楼主2024/4/26 13:28
#include<bits/stdc++.h>
using namespace std;
struct node{
	char id;
	double tem;
	int caugh;
}s;
int n,tot=0;
int main()
{
    cin>>n;
    for(int i=1;i<=n;i++)
    {
    	cin>>s.id>>s.tem>>s.caugh;
    	if(s.tem>=37.5&&s.caugh)
    	{
    		cout<<s.id<<endl;
    		tot++;
		}
	}
	cout<<tot<<endl;
    return 0;
}
2024/4/26 13:28
加载中...