Truck Transportation Problem
CodeChefOpen on judge ↗
In this problem, there are a trucks and b customers. The trucks are numbered from 1 to a and the capacity of each truck is different freom each other. Each task i has a value ni — the index of truck who is proficient in the customer's task. Every customer should have a truck assigned to it. If a truck is proficient in the customer's task, they complete it in 1 hour. Otherwise, it takes them 2 hou
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