#include <bits/stdc++.h> using namespace std; int main(int argc, char** argv) { int n; cin>>n; string name[n]; float tiwen[n]; int k[n]; int sum=0; for(int j=0;j<n;j++){ cin>>name[j]; cin>>tiwen[j]; cin>>k[j]; } for(int i=0;i<n;i++){ if(tiwen[i]>=37.5){ if(k[i]=1){ cout<<name[i]<<endl; sum++; } } } cout<<sum; return 0; }
标签:std,name,int,cin,1399,tiwen From: https://www.cnblogs.com/hanxuyao/p/17112291.html