Revenge of Jon Snow
CodeChefOpen on judge ↗
After defending The Wall from the White Walkers, Jon Snow needs to head back to King's Landing and Winterfell to avenge his father's death. Jon Snow has a map in his hand but he realizes that the map is too old to be read. Therefore, Jon Snow comes up with a plan. He calculates a number called $N$-$th$ Travel Number and using this number, he finds his way to King's Landing. Help Jon Snow to calcul
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