Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
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:
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’?
Output a single integer in a single line — the number of problems that are yet ‘Un-attempted’
Input: 10 4
Output: 6
Input: 10 10
Output: 0
Input: 1000 990
Output: 10
Input: 500 1
Output: 499
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.
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);
}
}
#include <iostream>
using namespace std;
int main() {
int x,y;
cin>>x>>y;
cout<<x-y<<endl;
return 0;
}
X, Y = map(int, input().split(" "))
print(X - Y)
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
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 >>