03: First screening of swine flu patients
-
Total time limit:
-
1000ms
-
Memory Limit:
-
65536kB
-
-
Describe
-
-
At present, it is the prevalence of swine flu, in order to better shunt treatment, the hospital in the registration request for the patient's temperature and cough, for the body temperature of more than 37.5 degrees (including 37.5 degrees) and cough patients were initially determined to be a swine flu patients (first screening). It is now necessary to count the number of patients who came to the registered clinic one day to be screened as a swine flu patient.
-
-
Input
-
-
the first line is the number of patients who came to the registered clinic one day. (N < 200)
followed by n lines, each line is the patient's information, including three information: name (string, no space, up to 8 characters), body temperature (float), cough (integer, 1 means cough, 0 means no cough). Each line of three messages is separated by a single space.
-
-
Output
-
The
-
names of all patients screened as swine flu, each with one row, are output in order of entry. After that, in the output line, the number of patients screened for swine flu.
-
-
Sample input
-
-
5Zhang 38.3 0Li 37.5 1Wang 37.1 1Zhao 39.0 1Liu 38.2 1
-
-
Sample output
-
-
LiZhaoLiu3
-
-
Source
-
-
Medical Department No. 2009 Final Exam
-
1#include <cstdio>2#include <cmath>3#include <cstring>4 using namespacestd;5 structMans6 {7 Charname[Ten];8 floatl;9 ints;Ten }; One intLen; A intMain () - { - intN; thescanf"%d",&n); - Man M[n]; - for(intI=0; i<n;i++) - { +scanf"%s%f%d",m[i].name,&m[i].l,&m[i].s); - if(m[i].l>=37.5&&m[i].s==1) + { Aprintf"%s\n", m[i].name); atlen++; - } - } -printf"%d", Len); - return 0; - in}
1.12.3