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.
Do just as the problem says.
- If D < L, then he is
- else if R < D, then he is
- else (the only remaining case is L\le D\le R), he can
take the second dose now
per test case.
Editorialist’s solution can be found here.
Experimental: For evaluation purposes, please rate the editorial (1 being poor and 5 excellent)