#A. 水位变化

    Type: FileIO (water) 1000ms 256MiB

水位变化

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.

【题目描述】

在云南红河,哈尼梯田依山而建,层层叠叠,宛如大地的琴键。梯田的水位会随着季节和雨量发生变化,当地的小朋友通过观察水位的变化来判断农时的到来。

现在,请你帮忙编写一个程序:输入一个整数 N N ,表示梯田水位相比前一天的变化值(单位:厘米)。

  • 如果 N>0 N > 0 ,说明水位上涨了,请输出 rising;
  • 如果 N=0N = 0 ,说明水位不变,请输出 stable;
  • 如果 N<0 N < 0 ,说明水位下降了,请输出 falling。

输入格式

一个整数 N N ,表示水位变化值。

输出格式

根据 NN 的正负情况,输出对应的英文单词(小写):

  • 若 N>0 N > 0 ,输出 rising;
  • 若 N=0 N = 0 ,输出 stable;
  • 若 N<0N < 0 ,输出 falling。
3
rising
-5
falling

数据范围

对于 40%40\% 的数据,−10≤N≤10-10 \le N \le 10

对于 100%100\% 的数据,−20≤n,x≤20-20 \le n,x \le 20

HIL2026年3月入门组

Not Attended
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