Three Tags
CodeChefOpen on judge ↗
In the kingdom of Chefland, every person is assigned a health tag based on their condition: - Green → No contact with infected person - Orange → Possible contact with infected person - Red → Infected person - Death → Person dies When two people meet, their tags may change according to predefined rules. If a person with tag A meets a person with tag B, their tags are updated to C and D respectiv
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