← All problemsSign in

Bull or Bear

CodeChefRating 300Open on judge ↗

Chef is on his way to become the new big bull of the stock market but is a bit weak at calculating whether he made a profit or a loss on his deal. Given that Chef bought the stock at value $X$ and sold it at value $Y$. Help him calculate whether he made a profit, loss, or was it a neutral deal. ### Input - The first line of input will contain a single integer $T$, denoting the number of test cas

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