Credit score CodeChef Solution

Problem – Credit score CodeChef Solution

To access CRED programs, one needs to have a credit score of 750 or more.
Given that the present credit score is X, determine if one can access CRED programs or not.

If it is possible to access CRED programs, output YES, otherwise output NO.

Input Format

The first and only line of input contains a single integer X, the credit score.

Output Format

Print YES if it is possible to access CRED programs. Otherwise, print NO.

You may print each character of the string in uppercase or lowercase (for example, the strings YeS, yEs, yes and YES will all be treated as identical).

Constraints

  • 0≤X≤1000

Subtasks

  • Subtask 1 (100 points): Original constraints.

Sample 1:

Input: 823
Output: YES

Explanation:

Since 823≥750, it is possible to access CRED programs.

Sample 2:

Input: 251
Output: NO

Explanation:

Since 251<750, it is not possible to access CRED programs.

Credit score CodeChef Solution in Java

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		InputStreamReader istream = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(istream);
		
		int x = Integer.parseInt(br.readLine());
		if(x < 750)  System.out.println("NO");
		else    System.out.println("YES");
	}
}

Credit score CodeChef Solution in C++17

#include <iostream>
using namespace std;

int main() {
    // int t; cin>>t; while(t--)
    {
        int x;
        cin>>x;
        cout<<(x>=750 ? "YES" : "NO")<<endl;
    }
	return 0;
}

Credit score CodeChef Solution in Pyth 3

X=int(input())
if X>=750:
    print("YES")
else:
    print("NO")
Credit score CodeChef Solution Review:

In our experience, we suggest you solve this Credit score CodeChef Solution and gain some new skills from Professionals completely free and we assure you will be worth it.

If you are stuck anywhere between any coding problem, just visit Queslers to get the Credit score CodeChef Solution

Find on CodeChef

Conclusion:

I hope this Credit score CodeChef Solution would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions

Leave a Reply

Your email address will not be published. Required fields are marked *