Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39401 C++|刘一阳 甲流病人初筛 C++ 通过 1 MS 248 KB 414 2024-02-01 15:03:46

Tests(1/1):


#include<iostream> #include<string> using namespace std; int main() { int n; cin>>n; int count=0; for (int i=0;i<n;i++) { string name; float temperature; int cough; cin>>name>>temperature>>cough; if (temperature>=37.5&&cough==1) { cout<<name<<endl; count++; } } cout<<count<<endl; return 0; }


测评信息: