126512024-12-27 14:59:16ffteklaVilágnaptár (45 pont)cpp17Wrong answer 15/451ms560 KiB
#include <iostream>

using namespace std;

int ev,honap,nap;
int main()
{
    cin>>ev>>honap>>nap;

    if (ev%4!=0) //nem szokoev
    {
        if (honap==12 && nap==31) cout<<ev<<" "<<honap<<" "<<"VN";
          else cout<<ev<<" "<<honap<<" "<<nap;
    }

    else //szokoev
    {
        if (honap<6) cout<<ev<<" "<<honap<<" "<<nap;
         else
            {
                if (honap==7 && nap==1) cout<<ev<<" "<<honap-1<<" "<<"SZN";
                  else cout<<ev<<" "<<honap-1<<" "<<nap-1;
            }
    }
}
SubtaskSumTestVerdictTimeMemory
base15/45
1Accepted0/01ms320 KiB
2Accepted0/01ms508 KiB
3Accepted0/01ms320 KiB
4Accepted2/21ms320 KiB
5Accepted2/21ms320 KiB
6Accepted3/31ms320 KiB
7Wrong answer0/31ms560 KiB
8Accepted3/31ms320 KiB
9Wrong answer0/31ms320 KiB
10Wrong answer0/31ms500 KiB
11Wrong answer0/31ms320 KiB
12Wrong answer0/31ms320 KiB
13Wrong answer0/31ms320 KiB
14Wrong answer0/31ms320 KiB
15Wrong answer0/31ms320 KiB
16Wrong answer0/31ms320 KiB
17Wrong answer0/31ms320 KiB
18Accepted2/21ms320 KiB
19Accepted3/31ms320 KiB