1.12.3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.