← All problemsSign in

Triangular Pyramid

You are given triangular pyramid. Let's mark its vertices with letters A, B, C and D correspondingly. Chef is standing in the vertex D of the triangular pyramid. The Chef is quite active and he wouldn't stay idle. At each moment of time he makes a step from one vertex to another one along some edge of the triangular pyramid. Chef just can't stand on one place. You do not have to do much to sol

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start