mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
添加了许多代码文件
This commit is contained in:
31
5新冠病毒初步筛查.cpp
Normal file
31
5新冠病毒初步筛查.cpp
Normal file
@ -0,0 +1,31 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <cmath>
|
||||
typedef long long l;
|
||||
typedef double d;
|
||||
typedef char c;
|
||||
using namespace std;
|
||||
struct wjh{
|
||||
string name;
|
||||
d tw;
|
||||
l ks;
|
||||
}arr[10000];
|
||||
int main(){
|
||||
l cnt=0;
|
||||
l a;
|
||||
cin >>a;
|
||||
for(int i=0;i<a;i++){
|
||||
cin >>arr[i].name>>arr[i].tw>>arr[i].ks;
|
||||
}
|
||||
for(int i=0;i<a;i++){
|
||||
if(arr[i].tw>=37.5 && arr[i].ks==1){
|
||||
cout <<arr[i].name<<endl;
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
cout <<cnt;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user