Algorithm


problem Link : https://www.codechef.com/problems/PRACLIST 

 

Problem

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 . Our Chef has already ‘Attempted’  problems among them. How many problems are yet ‘Un-attempted’?

Input Format

  • The first and only line of input contains two space-separated integers  and  — 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'

Code Examples

#1 Code Example with C Programming

Code - C Programming

 #include<stdio.h> < code>

int main(void) {
	int x,y;
	scanf("%d %d",&x,&y);
	printf("%d\n",x-y);
	return 0;
} 
Copy The Code & Try With Live Editor

Input

x
+
cmd
10 4

Output

x
+
cmd
6
Advertisements

Demonstration


CodeChef solution PRACLIST  - How many unattempted problems Codechef solution in C.C++ 

Previous
CodeChef solotion BIRIYANI - Biryani classes CodeChef solotion in C,C++
Next
CodeChef solution DETSCORE - Determine the Score Codechef solution in C.C++