Smallest Calculated Value

From programming_contest
Revision as of 07:03, 14 February 2023 by Kmk21 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This problem gives us 3 integers and asks us to perform any combination of arithmetic operations on them to see which result is smallest and non-negative.

As the numbers cannot be rearranged, we see that there are only 16 combinations of the 4 operators. Therefore, we can brute force and try all of them.