R5S - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: helloLad
Tester: wasd2401
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Chef’s current rating is X, and rating change after participating in a contest is Y.
Will he reach 2000 rating and become a 5-star coder?

EXPLANATION:

Chef’s final rating is X+Y.

Compute this number, and check if it’s \geq 2000 using an if condition; then print Yes or No appropriately.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (Python)
x, y = map(int, input().split())
print('Yes' if x+y >= 2000 else 'No')