练20.3 开灯关灯
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.
说明
尼克家里的灯,全是线型开关的,拉一下开,再拉一下关。小华觉得很好玩,有一次连拉了下,这时灯是亮的还是灭的呢?(未拉之前,灯是灭的。)试编一个程序,算一算灯是亮的还是灭的。
输入格式
无
输出格式
一行,亮的输出“灯亮”,否则输出“灯灭”。
样例
无
灯亮
测验多分支语句
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2024-12-29 8:00
- End at
- 2024-12-29 9:00
- Duration
- 1 hour(s)
- Host
- Partic.
- 6