Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
17023 | huangshengxuan | 甲流病人初筛 | C++ | Accepted | 0 MS | 244 KB | 368 | 2023-05-11 18:41:14 |
#include<bits/stdc++.h> using namespace std; int n,cough,ans; string name; double temp; int main() { cin>>n; for(int i=1;i<=n;i++) { cin>>name>>temp>>cough; if(temp>=37.5&&cough) { cout<<name<<endl; ans++; } } cout<<ans<<endl; return 0; }