CLEARDAY - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: notsoloud
Tester: yash_daga
Editorialist: iceknight1093

DIFFICULTY:

233

PREREQUISITES:

None

PROBLEM:

A certain week has X rainy days and Y cloudy days.
How many days were clear?

EXPLANATION:

Out of 7 days in the week, X were rainy and Y were cloudy.
The remaining days are clear: and there are 7-X-Y of them.

TIME COMPLEXITY

\mathcal{O}(1) per testcase.

CODE

Editorialist's code (Python)
x, y = map(int, input().split())
print(7-x-y)