Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
88366 sh25_wuyy 甲流病人初筛 C++ 通过 0 MS 252 KB 466 2026-05-10 19:21:05

Tests(1/1):


#include<bits/stdc++.h> using namespace std; bool chosen(double t,bool c){ if(t>=37.5&&c==1) return 1; else return 0; }int main(){ int n,cnt=0; cin>>n; string name[n]; float temperature[n]; bool coughing[n]; for(int i=0;i<n;i++){ cin>>name[i]>>temperature[i]>>coughing[i]; }for(int i=0;i<n;i++){ if(chosen(temperature[i],coughing[i])) cout<<name[i]<<endl,cnt++; }cout<<cnt; return 0; }


测评信息: