← All problemsSign in

The Electrician

Shammi was a great electrician. Once he had to cut a wire which satisfied the conditions that the wires should be of length a,b or c and the total number of pieces of the wire after cutting should be maximum. It is guaranteed that there is at least one possible solution Constraints:- No. of test cases(t)<=100; 1<=n,a,b,c<=1000; Input: first-line contains a number of test cases. Eve

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