Triangle Checking
You are given $3$ sticks of length $A$, $B$ and $C$. Please check if they can be the side lengths of a valid non-degenerate triangle. --- Recall that $A, B$ and $C$ can be the side-lengths of a non-degenerate triangle if and only if each of the following $3$ conditions hold: - $A + B > C$ - $B + C > A$ - $A + C > B$ ### Input - The first and only line of input contains $3$ integers - $A, B$
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