水位变化
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【题目描述】
在云南红河,哈尼梯田依山而建,层层叠叠,宛如大地的琴键。梯田的水位会随着季节和雨量发生变化,当地的小朋友通过观察水位的变化来判断农时的到来。
现在,请你帮忙编写一个程序:输入一个整数 ,表示梯田水位相比前一天的变化值(单位:厘米)。
- 如果 ,说明水位上涨了,请输出
rising; - 如果 ,说明水位不变,请输出
stable; - 如果 ,说明水位下降了,请输出
falling。
输入格式
一个整数 ,表示水位变化值。
输出格式
根据 的正负情况,输出对应的英文单词(小写):
- 若 ,输出
rising; - 若 ,输出
stable; - 若 ,输出
falling。
3
rising
-5
falling
数据范围
对于 的数据,
对于 的数据,
HIL2026年3月入门组
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2026-3-28 10:30
- End at
- 2026-4-5 18:30
- Duration
- 200 hour(s)
- Host
- Partic.
- 22