Skip to content

helpaphd

bradendubois edited this page Nov 24, 2021 · 7 revisions

Help a PhD candidate out!

ID: helpaphd

Difficulty: 1.5

CPU Time: 1 second

Memory: 1024 MB

Solution

The approach to this one is straightforward, but implementation may be difficult depending on your langauge of choice. Any language can reasonably compare to check the "P=NP" case, but for splitting the string at the "+" and converting to an actual int can be moderately difficult; it'd be blissfully easy if done in Python, thanks to split() and int().

Clone this wiki locally