【例16.2】 开灯
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.
说明
小蓝家的灯是线型开关的,拉一次灯开,再拉一次灯关,未拉之前是熄灭状态。
输入一个正整数 (1 < M < 100),作为小蓝拉灯的次数,判断拉灯 次后,灯是点亮状态还是熄灭状态。
输入格式
输入一个正整数 作为拉灯的次数()。
输出格式
如果灯是点亮状态输出整数 ,如果灯是熄灭状态输出整数 。
样例
5
1
2023/04/24 周一作业
- Status
- Done
- Problem
- 28
- Open Since
- 2023-4-24 0:00
- Deadline
- 2023-5-2 23:59
- Extension
- 24 hour(s)