1269: (2026)实验1-1A 心率监测提示与字符输出 / Heart Rate Status and Char Output
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:51
Solved:27
Description
【中文题面】
输入一个整数,表示某人的心率(单位:bpm)。
若心率小于 60,先输出“偏低”,再输出字符 L;
若心率大于等于 60 且不超过 100,先输出“正常”,再输出字符 N;
若心率大于 100,先输出“偏高”,再输出字符 H。
输出共两行:第一行为中文状态,第二行为对应字符。
[English Description]
Input an integer representing a person's heart rate in bpm.
If the heart rate is less than 60, output "Low" on the first line and character L on the second line.
If the heart rate is between 60 and 100 inclusive, output "Normal" on the first line and character N on the second line.
If the heart rate is greater than 100, output "High" on the first line and character H on the second line.
输入一个整数,表示某人的心率(单位:bpm)。
若心率小于 60,先输出“偏低”,再输出字符 L;
若心率大于等于 60 且不超过 100,先输出“正常”,再输出字符 N;
若心率大于 100,先输出“偏高”,再输出字符 H。
输出共两行:第一行为中文状态,第二行为对应字符。
[English Desc
Input an integer representing a person's heart rate in bpm.
If the heart rate is less than 60, output "Low" on the first line and character L on the second line.
If the heart rate is between 60 and 100 inclusive, output "Normal" on the first line and character N on the second line.
If the heart rate is greater than 100, output "High" on the first line and character H 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 the status (Low/Normal/High in Chinese as required), and the second line is the character L, N, or H.
输出两行。第一行为状态(偏低/正常/偏高),第二行为字符(L/N/H)。
[Output]
Output two lines. The first line is the status (Low/Normal/High in Chinese as required), and the second line is the character L, N, or H.
Sample Input Copy
59
Sample Output Copy
偏低
L
HINT
可使用 int 保存心率,char 保存提示字符。