Vaccine Dates solution codechef
Chef has taken his first dose of vaccinedays ago. He may take the second dose no less than days and no more than days since his first dose.
Determine if Chef is too early, too late, or in the correct range for taking his second dose.
- First line will contain , number of testcases. Then the testcases follow.
- Each testcase contains of a single line of input, three integers .
For each test case, print a single line containing one string – “Too Early” (without quotes) if it’s too early to take the vaccine, “Too Late” (without quotes) if it’s too late to take the vaccine, “Take second dose now” (without quotes) if it’s the correct time to take the vaccine.
- Subtask 1 (100 points): Original constraints
Sample Input 1
4 10 8 12 14 2 10 4444 5555 6666 8 8 12
Take second dose now Too Late Too Early Take second dose now
Test case: The second dose needs to be taken within to days and since the Day lies in this range, we can take the second dose now.
Test case: The second dose needs to be taken within to days since Day lies after this range, it is too late now.
Test case: The second dose needs to be taken within to days and since the Day lies prior to this range, it is too early now.
Vaccine Dates solution codechef, Vaccine Dates solution codechef