Fibonacci
CodeChefOpen on judge ↗
There are 3 students, numbered $1$,$2$, and $3$, playing a game. Each one of them holds an integer, namely, $a$, $b$, and $c$ respectively. (Note: $a$, $b$ and $c$ are consecutive integers) The game proceeds as follows: 1. Two players form a team. 2. The person left plays solo. 3. The score of each team is the product of the numbers held by its members. 4. If a team has only one member the s
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