diff options
Diffstat (limited to 'codechef/problemCategory')
| -rw-r--r-- | codechef/problemCategory/problemCategory.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/codechef/problemCategory/problemCategory.cpp b/codechef/problemCategory/problemCategory.cpp new file mode 100644 index 0000000..4eb7500 --- /dev/null +++ b/codechef/problemCategory/problemCategory.cpp @@ -0,0 +1,23 @@ +#include<bits/stdc++.h> + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + int x; + cin >> x; + if(x < 100) { + cout << "Easy" << '\n'; + } + else if(x >= 100 && x < 200) { + cout << "Medium" << '\n'; + } + else if(x >= 200 && x <= 300) { + cout << "Hard" << '\n'; + } + } +} |
