1271: (2026)实验1-1C 心率字符与状态 / Heart Rate Character and Status
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:121
Solved:26
Description
【中文题面】
输入一个整数,表示某人的心率(单位:bpm)。
若心率小于 65,输出字符 l,并输出“偏低”;
若心率大于等于 65 且不超过 105,输出字符 n,并输出“正常”;
若心率大于 105,输出字符 h,并输出“偏高”。
输出共两行:第一行为字符,第二行为中文状态。
[English Description]
Input an integer representing a person's heart rate in bpm.
If the heart rate is less than 65, output character l on the first line and "Low" (Chinese required: 偏低) on the second line.
If the heart rate is between 65 and 105 inclusive, output character n on the first line and "Normal" (正常) on the second line.
If the heart rate is greater than 105, output character h on the first line and "High" (偏高) on the second line.
输入一个整数,表示某人的心率(单位:bpm)。
若心率小于 65,输出字符 l,并输出“偏低”;
若心率大于等于 65 且不超过 105,输出字符 n,并输出“正常”;
若心率大于 105,输出字符 h,并输出“偏高”。
输出共两行:第一行为字符,第二行为中文状态。
[English Desc
Input an integer representing a person's heart rate in bpm.
If the heart rate is less than 65, output character l on the first line and "Low" (Chinese required: 偏低) on the second line.
If the heart rate is between 65 and 105 inclusive, output character n on the first line and "Normal" (正常) on the second line.
If the heart rate is greater than 105, output character h on the first line and "High" (偏高) on the second line.
Input
【输入】
输入一个整数,表示心率值。
[Input]
One integer, the heart rate value.
输入一个整数,表示心率值。
[Input]
One integer, the heart rate value.
Output
【输出】
输出两行。第一行为字符(l/n/h),第二行为中文状态。
[Output]
Output two lines. The first line is one character (l/n/h), and the second line is the Chinese status.
输出两行。第一行为字符(l/n/h),第二行为中文状态。
[Output]
Output two lines. The first line is one character (l/n/h), and the second line is the Chinese status.
Sample Input Copy
65
Sample Output Copy
n
正常