Tales from the Mortytown
CodeChefOpen on judge ↗
There are $N$ Rickless Mortys living in Mortytown. Each of these Mortys belongs to one of the three social _classes:_ 1. Elite Mortys 1. Well-off Mortys 1. Worker Mortys Now, Mortys of a _class_ have a specific relationship with the Mortys of other _classes:_ * The _Worker Mortys_ respect the _Well-off Mortys_ as they consider them as their role models of prosperity. * The _Well-off Mo
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