41142023-03-14 23:00:21kristofVilágnaptár (45 pont)python3Wrong answer 18/4517ms14264 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:
    if day == 1:
        month = 6
        day = "SZN"
elif month == 12:
    if day == 31:
        day = "VN"
print(year, month, day)
SubtaskSumTestVerdictTimeMemory
base18/45
1Accepted0/017ms10892 KiB
2Accepted0/017ms11024 KiB
3Accepted0/017ms11560 KiB
4Accepted2/217ms11908 KiB
5Accepted2/217ms12124 KiB
6Accepted3/317ms11780 KiB
7Wrong answer0/317ms12320 KiB
8Accepted3/317ms12332 KiB
9Wrong answer0/317ms12600 KiB
10Accepted3/317ms12900 KiB
11Wrong answer0/317ms13056 KiB
12Wrong answer0/317ms13376 KiB
13Wrong answer0/317ms13412 KiB
14Wrong answer0/317ms13596 KiB
15Wrong answer0/317ms13416 KiB
16Wrong answer0/317ms13804 KiB
17Wrong answer0/317ms13928 KiB
18Accepted2/217ms14264 KiB
19Accepted3/317ms13944 KiB