-->
当前位置:首页 > 题库

PROGRAMMING:Pretend to sleep

Luz5年前 (2021-05-10)题库515
You can never wake a person who pretends to sleep - but by analyzing a person's respiratory rate and pulse, you can find out who is pretending to sleep! Doctors tell us that the normal person's breathing rate is 15-20 times per minute, pulse is 50-70 times per minute. Given the respiratory rate and pulse of a series of people, please find out the people who may be sleeping, that is, the people whose at least one index is not in the normal range.
###Input format:
Input gives a positive integer $$n $$($$Le 10 $$) on the first line. The next $$n $$line, each line gives a person's name (only a string of English letters and no more than 3 characters in length), respiratory rate and pulse (all positive integers no more than 100).
###Output format:
Check each person according to the input order. If at least one of the indicators is not in the normal range, output their names, and each name occupies one line.
###Input example:
```in
four
Amy 15 70
Tom 14 60
Joe 18 50
Zoe 21 71
```
###Output example:
```out
Tom
Zoe
```






answer:If there is no answer, please comment