King vs Minister
CodeChefOpen on judge ↗
Once upon a time, there lived a great legendary king called George. He was a very wise king, and he always had the support of his minister, named Philip. One day the queen was angry at the king and did not eat or drink anything. That night the king pleased the queen for a long time, and finally, the queen spoke about the reason why she was angry with him. The next day, the king was sitting on his
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