My issue
Input Format
The first and only line of input will contain two space-separated integers
X
X and
Y
Y, denoting the number of rainy and cloudy days in the week.
Output Format
Output the number of clear days in the week.
Constraints
0
≤
X
,
Y
≤
7
0≤X,Y≤7
0
≤
X
+
Y
≤
7
0≤X+Y≤7
Sample 1:
Input
Output
2 3
2
Explanation:
There are
7
7 days in a week. If there are
2
2 rainy days and
3
3 cloudy days, then the remaining
7
−
2
−
3
2
7−2−3=2 days are clear.
Sample 2:
Input
Output
3 4
0
Explanation:
If there are
3
3 rainy days and
4
4 cloudy days, then the remaining
7
−
3
−
4
0
7−3−4=0 days are clear.
My code
#include <stdio.h>
int main() {
}
Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS00/problems/CLEARDAY