Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Vaccine Dates codechef solution in c++

#include<iostream>
using namespace std;

class solution
{
public:
	void solve()
	{
		int D, L , R;
		cin >> D >> L >> R;
		if (D >= L && D <= R)
		{
			cout << "Take second dose now
";
		}
		else if (D < L)
		{
			cout << "Too Early
";
		}
		else
		{
			cout << "Too Late
";
		}
	}
};
int main()
{
	solution ss;

	int t;
	cin >> t;
	while (t--)
    {
		ss.solve();
	}

	return 0;
}
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #Vaccine #Dates #codechef #solution
ADD COMMENT
Topic
Name
7+9 =