Trade Surplus
Chefland consists of three countries named $A, B,$ and $C$. - Country $A$ exports goods worth $A_1$ units and imports goods worth $A_2$ units. - Country $B$ exports goods worth $B_1$ units and imports goods worth $B_2$ units. A *trade surplus* occurs when a country exports **strictly more** than it imports. Find whether country $C$ is in *trade surplus*. Note that the countries $A,B,C$ trade
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