In this Codechef How many unattempted problems 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’?
Problem solution in Python.
x,y = map(int,input().split()) ans=x-y print(ans)
Problem solution in Java.
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { Scanner sc= new Scanner(System.in); // your code goes here int x,y; x=sc.nextInt(); y=sc.nextInt(); System.out.println(x-y); } }
Problem solution in C++.
#include <iostream> using namespace std; int main() { int x, y; cin>>x>>y; cout<<(x-y)<<endl; return 0; }
Problem solution in C.
#include <stdio.h> int main(void) { int X,Y,U; scanf("%d%d",&X,&Y); U=X-Y; printf("%d",U); return 0; }
0 Comments