# PROBLEM LINK:

Contest - Division 3

Contest - Division 2

Contest - Division 1

# DIFFICULTY:

CAKEWALK

# PROBLEM:

Chef has taken his first vaccine D days ago. He may take the booster dose no less than L days and no more than R days since his first dose.

Determine if chef can take the vaccine or not.

# EXPLANATION:

Do just as the problem says.

- If D < L, then he is
`too early`

- else if R < D, then he is
`too late`

- else (the only remaining case is L\le D\le R), he can
`take the second dose now`

# TIME COMPLEXITY:

O(1)

per test case.

# SOLUTIONS:

Editorialistâ€™s solution can be found here.

**Experimental:** For evaluation purposes, please rate the editorial (1 being poor and 5 excellent)

- 1
- 2
- 3
- 4
- 5

0 voters