Skip to content

moscowdream

bradendubois edited this page Nov 24, 2021 · 8 revisions

Moscow Dream

ID: moscowdream

Difficulty: 2.0

CPU Time: 1 second

Memory: 1024 MB

Solution

For this, one can simply read in a, b, c, and n, and output "YES" ("NO" otherwise) if three conditions are met: a + b + c >= n, a and b and c are all >= 1, and n is at least 3.

Clone this wiki locally