Christmas Profit
CodeChefOpen on judge ↗
Nicholas owns a shop that sells seasonal decor items. The shop is in a posh locality so he has to pay a rent of $X$ coins. This year, Nicholas bought $N$ Christmas trees each for $A[i]$ coins and was able to sell them for $B[i]$ coins each. Print the $Net Profit$ of Nicholas. The $Net Profit$ is given by the $Total Revenue - Total Expenses$. ### Input - The first line will contain $T$, the n
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