You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.