Agents on mission
CodeChefOpen on judge ↗
There is an urgent need of $N$ agents for $N$ missions. The missions are numbered from $1$ to $N$. All agents have some intelligence level denoted by their IQ (a positive integer ) . Major Francis asked Perry the platypus for the list of agents to be sent on missions. For each mission: $i$, there is a default agent available ($Ai$) , and an Special agent ($Bi$) which may want some money($Ci$) to
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