Game Of Sticks
CodeChefOpen on judge ↗
Bob was walking down the street all alone one day thinking of what to do. While walking he found a couple of sticks of different lengths lying on the road. He picked them up and devised a game that could be played with them. He glued magnets on to both ends of all the sticks so that he could easily join any two sticks. In this way he could form many triangles. Now the game he made was to use all
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