Chef in Fantasy League
Chef is going to start playing Fantasy Football League (FFL) this season. In FFL, each team consists of exactly $15$ players: $2$ *goalkeepers*, $5$ *defenders*, $5$ *midfielders* and $3$ *forwards*. Chef has already bought $13$ players; he is only missing one defender and one forward. There are $N$ available players (numbered $1$ through $N$). For each valid $i$, the $i$-th player is either a
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