Search
 
SCRIPT & CODE EXAMPLE
 

CPP

problem category codechef solution in c++

/*
  problem link: https://www.codechef.com/LP1TO201/problems/PROBCAT
*/  

#include<iostream>
#include<climits>
#define ll long long
#include<vector>
#include<stack>
#include<string>
#include<algorithm>
using namespace std;

void solve()
{
	ll x;
	cin >> x;
	if (x >= 1 && x < 100)
		cout << "Easy
";
	else if (x >= 100 && x < 200)
		cout << "Medium
";
	else
		cout << "Hard
";
}

int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		solve();
	}
	return 0;
}
Comment

problem category codechef solution in c++

/*
  problem link: https://www.codechef.com/LP1TO201/problems/PROBCAT
*/  

#include<iostream>
#include<climits>
#define ll long long
#include<vector>
#include<stack>
#include<string>
#include<algorithm>
using namespace std;

void solve()
{
	ll x;
	cin >> x;
	if (x >= 1 && x < 100)
		cout << "Easy
";
	else if (x >= 100 && x < 200)
		cout << "Medium
";
	else
		cout << "Hard
";
}

int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		solve();
	}
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: how togreper 
Cpp :: std::enable_shared_from_this include 
Cpp :: c++ square and multiply algorithm 
Cpp :: ifstream file (“code2.txt”); dev C++ 
Cpp :: Round 1 Confusion codechef solution in c++ 
Cpp :: java to puthon converter 
Cpp :: what is a .h file in c++ 
Cpp :: string class in c++ 
Cpp :: Array declaration by specifying the size and initializing elements in C++ 
Cpp :: c++ profiling tools 
Cpp :: even number program in c++ using for loop stack overflow 
Cpp :: C++ Initializing a thread with a class/object 
Cpp :: ejemplo 
Cpp :: c++ fstream read line write ,creat file program 
Cpp :: cpp split bits 
Cpp :: c++ stack 
Cpp :: cout ascii art c++ 
Cpp :: c++ program for inflation rate of two numbers 
Cpp :: youtube to facebook link converter 
Cpp :: remove digit from number c++ 
Cpp :: Increase IQ codechef solution in c++ 
Cpp :: c++ sort numbers by magnitude/absolute value 
Cpp :: convert char to string c++ 
Cpp :: c++ abs template 
Cpp :: gcc compile multi thread 
Cpp :: matrix chainmultiplication 
Cpp :: c++ string to const char* 
Cpp :: inside information subtask 2 
Cpp :: sro in c++ 
Cpp :: cf 633b trivial problem explanation 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =