Problems > What Day Was It

What Day Was It

Difficulty: 1300 2000 ms 128 MB

math implementation

Print the day of the week for the given Gregorian date, in uppercase (MONDAY, TUESDAY, ...).

Input: one line with three integers: year, month, day.

Output: the weekday name in uppercase.

Constraints:

  • 1600 ≤ year ≤ 4000
  • the date is valid

Sample Tests

Input 1
2024 7 12
Output 1
FRIDAY
Input 2
2000 1 1
Output 2
SATURDAY

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.