Skip to content

numberfun

bradendubois edited this page Jun 9, 2021 · 6 revisions

Number Fun

ID: numberfun

Difficulty: 1.4

CPU Time: 1 second

Memory: 1024 MB

Solution

One can read in a, b, and c, and enumerate the cases (a + b == c?, b + a == c?, ...) and output "Possible" if any are true. Regarding implementation, one may need to be careful with division, and perhaps use doubles or similar, because 5 / 3 does actually equal 1, if using ints, but this is a case regarded as "Impossible" in the sample data.

Clone this wiki locally