Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

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).


  • 0≤X≤1000


  • Subtask 1 (100 points): Original constraints.

Sample 1:

Input: 823
Output: YES


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

Sample 2:

Input: 251
Output: NO


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

Credit score CodeChef Solution in Java

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

class Codechef
	public static void main (String[] args) throws java.lang.Exception
		InputStreamReader istream = new InputStreamReader(;
		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;
        cout<<(x>=750 ? "YES" : "NO")<<endl;
	return 0;

Credit score CodeChef Solution in Pyth 3

if X>=750:
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


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 *