C. 练20.3  开灯关灯

    Type: Default 1000ms 64MiB

练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.

Description

All the lights in Nick's house use toggle switches: pull once to turn on, pull again to turn off. Xiaohua found it fun and pulled the switch 5 times in a row. Is the light on or off now? (Before pulling, the light is off.) Write a program to determine whether the light is on or off.

Input Format

None

Output Format

One line: if the light is on, output "Light On"; otherwise, output "Light Off".

Sample

None
Light On

20251206 A班作业(9)

Not Claimed
Status
Done
Problem
5
Open Since
2025-12-6 0:00
Deadline
2025-12-14 23:59
Extension
24 hour(s)