211532026-01-12 13:55:24ZsoltVilágnaptár (45 pont)cpp17Wrong answer 18/451ms596 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int ev,ho,nap;
    cin>>ev>>ho>>nap;
    if(ev%4==0)
    {
        if((ho==7 && nap==1))
        {
            cout<<ev<<" "<<ho-1<<" SZN";
            return 0;
        }
        else
        {
            if(ho==6 && nap==31)
            {
                cout<<ev<<" "<<ho<<" SZN";
                return 0;
            }
        }
    }
    if(ho==12 && nap==31)
    {
        cout<<ev<<" "<<ho<<" VN";
    }
    else
    {
            cout<<ev<<" "<<ho<<" "<<nap;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base18/45
1Accepted0/01ms316 KiB
2Accepted0/01ms316 KiB
3Accepted0/01ms316 KiB
4Accepted2/21ms316 KiB
5Accepted2/21ms316 KiB
6Accepted3/31ms316 KiB
7Wrong answer0/31ms316 KiB
8Accepted3/31ms316 KiB
9Wrong answer0/31ms316 KiB
10Accepted3/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/31ms316 KiB
13Wrong answer0/31ms316 KiB
14Wrong answer0/31ms316 KiB
15Wrong answer0/31ms596 KiB
16Wrong answer0/31ms500 KiB
17Wrong answer0/31ms388 KiB
18Accepted2/21ms316 KiB
19Accepted3/31ms316 KiB