My very 1st contest! | Problem - 1 | Beginner level | C language | CodeChef

Link to the problem statement: https://www.codechef.com/submit-v2/MY1STCONTEST

Solution: 

#include <stdio.h>

int main(void) {
int n, a, b;
scanf("%d %d %d", &n, &a, &b);
int c, d;
c = n - a; //user made submissions and will get a rating.
d = c - b; //user that were able to solve at least 1 problem and hence will get a
           //rating greater than 1000.
printf("%d %d", c, d);
return 0;
}

You can watch the video solution of this problem:


Hope this will help you, if you want anything else leave a comment.

Thank you

Comments

Popular posts from this blog

Implementing linked list in C language