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

PROGRAMMING:Fish or meat

Luz5年前 (2021-05-10)题库514

![ Meat. JPG] (~ / fbb97e8a-67f1-4d28-a925-70bd1307fd80. JPG)
The standard height and weight of an 8-year-old boy are 130cm and 27kg respectively; The standard height of an 8-year-old girl is 129 cm and the standard weight is 25 kg.
Now you need to give nutritional advice according to the baby's height and weight.
###Input format:
Enter a positive integer $$n $$no more than 10 in the first line, followed by $$n $$lines. Each line gives a baby's body data:
```
Gender height weight
```
Where 'gender' is 1 for male and 0 for female` Both height and weight are positive integers no more than 200.
###Output format:
For each baby, give your advice in a line:
-If it's too short, output: ` duo Chi Yu`( Eat more fish;
-If it's too thin, output: ` duo Chi Rou`( Eat more meat;
-If the standard is positive, output: ` Wan Mei`( Perfect);
-If it's too high, output: ` Ni Li Hai`( You're good;
-If it's too fat, output: ` Shao Chi Rou`( Eat less meat).
Evaluate height first, then weight. There should be a space between the two sentences.
###Input example:
```in
four
0 130 23
1 129 27
1 130 30
0 128 27
```
###Output example:
```out
ni li hai! duo chi rou!
duo chi yu! wan mei!
wan mei! shao chi rou!
duo chi yu! shao chi rou!
```







answer:If there is no answer, please comment