41152023-03-14 23:01:46kristofVilágnaptár (45 pont)python3Wrong answer 18/4517ms13116 KiB
year, month, day = map(int, input().split())

thirtyDays = [2, 3, 5, 6, 8, 9, 11]

if month in thirtyDays:
    if day == 31:
        month += 1
        day = 1
elif month == 7 and year % 4 == 0:
    if day == 1:
        month = 6
        day = "SZN"
elif month == 12:
    if day == 31:
        day = "VN"
print(year, month, day)
SubtaskSumTestVerdictTimeMemory
base18/45
1Accepted0/017ms10844 KiB
2Accepted0/017ms11200 KiB
3Accepted0/017ms11568 KiB
4Accepted2/217ms11600 KiB
5Accepted2/217ms11860 KiB
6Accepted3/317ms12456 KiB
7Wrong answer0/317ms12568 KiB
8Accepted3/317ms12436 KiB
9Wrong answer0/317ms12788 KiB
10Accepted3/317ms12648 KiB
11Wrong answer0/317ms12584 KiB
12Wrong answer0/317ms12540 KiB
13Wrong answer0/317ms12780 KiB
14Wrong answer0/317ms12856 KiB
15Wrong answer0/317ms13052 KiB
16Wrong answer0/317ms12968 KiB
17Wrong answer0/317ms13116 KiB
18Accepted2/217ms13052 KiB
19Accepted3/317ms13020 KiB