传统题 1000ms 256MiB

希蒙的同学录

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

题目描述

希蒙马上就要毕业了,他舍不得相处了多年的同学,因此他细心的准备了一个同学录,准备把他的同学都记录下来。

输入格式

一个整数n,表示希蒙的同学个数(不到10000人)

接下来每行有5个数据,分别表示希蒙同学的姓名(不多于20个英文字母),年龄,身高(小数),体重(小数),性别(M/F)

输出格式

按照以下输出希蒙的每个同学,体重和身高保留一位小数

男生:

His name is Jack, he is 9 years old, he is 1.6 meters tall and weighs 60.0 kg.

女生:

Her name is Lily, she is 9 years old, she is 1.6 meters tall and weighs 60.0 kg.

样例

输入样例

3
Jack 12 1.6 60 M
Lily 10 1.4 40 F
Bob 12 1.8 65 M

输出样例

His name is Jack, he is 12 years old, he is 1.6 meters tall and weighs 60.0 kg.
Her name is Lily, she is 10 years old, she is 1.4 meters tall and weighs 40.0 kg.
His name is Bob, he is 12 years old, he is 1.8 meters tall and weighs 65.0 kg.

2023年8月C++语法新人测试题

未参加
状态
已结束
规则
IOI
题目
10
开始于
2023-12-19 16:00
结束于
2023-12-19 18:30
持续时间
2.5 小时
主持人
参赛人数
14