Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: uint16_t in c++ 
Cpp :: parking charge system project c++ 
Cpp :: how to use printf with <cinttypes c++ 
Cpp :: no of balanced substrings 
Cpp :: how to create windows warning message c++ 
Cpp :: 3. The method indexOf, part of the List interface, returns the index of the first occurrence of an object in a List. What does the following code fragment do? 
Cpp :: sort array in descending order c++ 
Cpp :: c++ throe 
Cpp :: c++ optimize big int array 
Cpp :: convert string to double arduino 
Cpp :: how to signify esc key in cpp 
Cpp :: PascalName seperate strings 
Cpp :: C++ Display a text 5 times 
Cpp :: c++ argument list for class template is missing 
Cpp :: c++ over load oprator to print variable of clas 
Cpp :: vector with initial size 
Cpp :: c++ vector allocator example 
Cpp :: c++ click event 
Cpp :: vermífugo significado 
Cpp :: heroatx77 
Cpp :: default order in set in c++ 
Cpp :: c++ merging algorithm 
Cpp :: delete an dynamic array 
Cpp :: Passing a string to a function 
Cpp :: c++ array access operator 
Cpp :: all in one c++ 
Cpp :: c++ FAILED: objekt aufruf : symbol(s) not found for architecture x86_64 
Cpp :: lnk2001 unresolved external symbol __imp_PlaySoundA 
Cpp :: Hiring Test codechef solution in c++ 
Cpp :: racing horses codechef solution c++ 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =