F - Red Green Game
CodeChefOpen on judge ↗
*As India establishes its first major semiconductor fabrication plant, engineers are fine-tuning the automated logic gates used in 28nm chip production. Two control algorithms, Alice and Bob, take turns processing a stream of logic signals represented by Red (Low-energy) and Green (High-energy) pulses. Both algorithms begin with an internal state of "Low" (Red). Processing a Green pulse flips the
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start