Skip to content

nastyhacks

bradendubois edited this page Nov 24, 2021 · 7 revisions

Nasty Hacks

ID: nastyhacks

Difficulty: 1.4

CPU Time: 1 second

Memory: 1024 MB

Solution

For the inputs r, e, and c, r is not affected by advertising or costs of advertising, so the gross profit is e - c, so one can just compare this difference with r to check which is larger/equal.

Clone this wiki locally