304 North Cardinal St.
Dorchester Center, MA 02124

# How many unattempted problems CodeChef Solution

## Problem – How many unattempted problems CodeChef Solution

CodeChef recently revamped its practice page to make it easier for users to identify the next problems they should solve by introducing some new features:

• Recent Contest Problems – contains only problems from the last 2 contests
• Separate Un-Attempted, Attempted, and All tabs
• Problem Difficulty Rating – the Recommended dropdown menu has various difficulty ranges so that you can attempt the problems most suited to your experience
• Popular Topics and Tags

Our Chef is currently practicing on CodeChef and is a beginner. The count of ‘All Problems’ in the Beginner section is XX. Our Chef has already ‘Attempted’ YY problems among them. How many problems are yet ‘Un-attempted’?

#### Input Format

• The first and only line of input contains two space-separated integers XX and YY — the count of ‘All problems’ in the Beginner’s section and the count of Chef’s ‘Attempted’ problems, respectively.

#### Output Format

Output a single integer in a single line — the number of problems that are yet ‘Un-attempted’

#### Constraints

• 1 \leq Y \leq X \leq 10001≤YX≤1000

• Original constraints.

#### Sample 1:

Input: 10 4
Output: 6

#### Sample 2:

Input: 10 10
Output: 0

#### Sample 3:

Input: 1000 990
Output: 10

#### Sample 4:

Input: 500 1
Output: 499

### Explanation:

Test case 1: There are 1010 problems in total in the Beginner’s section, out of which 44 have been attempted. Hence, there are 66 Un-attempted problems.

Test case 2: There are 1010 problems in total in the Beginner’s section, out of which all have been attempted. Hence, there are 00 Un-attempted problems.

Test case 3: There are 10001000 problems in total in the Beginner’s section, out of which 990990 have been attempted. Hence, there are 1010 Un-attempted problems.

Test case 4: There are 500500 problems in total in the Beginner’s section, out of which only 11 has been attempted. Hence, there are 499499 Un-attempted problems.

### How many unattempted problems 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
{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println(x-y);
}
}


### How many unattempted problems CodeChef Solution in C++14

#include <iostream>
using namespace std;

int main() {
int x,y;
cin>>x>>y;
cout<<x-y<<endl;
return 0;
}


### How many unattempted problems CodeChef Solution in Python3

X, Y = map(int, input().split(" "))
print(X - Y)
##### How many unattempted problems CodeChef Solution Review:

In our experience, we suggest you solve this How many unattempted problems 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 How many unattempted problems CodeChef Solution

Find on CodeChef

##### Conclusion:

I hope this How many unattempted problems 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