Editorial for DMOPC '19 Contest 6 P0 - Trivial Math
Submitting an official solution before solving the problem yourself is a bannable offence.
Consider the case in which the sum of lengths of the two shorter sides is less than or equal to the length of the longest side. The shorter sides will either not be able to span across the width of the longest side or will touch to form a triangle with an area of 0. Therefore, no triangle with non-zero area can be produced.
Otherwise, it is always possible to produce a triangle with non-zero area.
read a, b, c sides = sorted([a, b, c]) if sides + sides <= sides print "no" else print "yes"
Time complexity: ~\mathcal O(1)~