Displaying Da Vinci work
CodeChefOpen on judge ↗
The King of Florence is going to visit Da Vinci in his workshop to see his paintings. In preparation of that, Da Vinci has painted a total of N paintings that he would display to the King. Since, the King is very busy dealing with the after effects of war, he has asked Da Vinci to make sure that he can see all of his paintings in one standing. To solve that problem, Da Vinci has done the follow
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