Smallest Calculated Value: Difference between revisions

From programming_contest
Jump to navigation Jump to search
Created page with "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. Category:ICPC Problems Category:Naq2022 Category:Algorithm Easy Category:Implementation Easyh Category:BruteForce"
 
No edit summary
 
Line 6: Line 6:
[[Category:Naq2022]]
[[Category:Naq2022]]
[[Category:Algorithm Easy]]
[[Category:Algorithm Easy]]
[[Category:Implementation Easyh]]
[[Category:Implementation Easy]]
[[Category:BruteForce]]
[[Category:Brute Force]]

Latest revision as of 07:03, 14 February 2023

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.