Divide The Marks 1
CodeChefOpen on judge ↗
Statement: Consider a multiset S which contains A copies of the marks 1, B copies of 2 and C copies of 3. For example, if A=3, B=3 and C=3, then **S= {1,1,1,2,2,2,3,3,3}.** Your goal is to divide the marks of **S** into two groups (multisets); each mark of the set must be present the sum of marks of one group must be equal to the sum of marks of the other group. In our example, it is p
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