Torture
CodeChefOpen on judge ↗
**"This isn't happening to you for a reason. Well, one reason. I enjoy it" - Ramsay Bolton.** Theon is in the captivity of Ramsay Bolton and he is very much desperate to escape from him. Ramsay knows this and he gives him a problem which if Theon could solve, he would be set free. But Theon knows the true nature of Ramsay and therefore he knows the problem given to him will be so hard that he won
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