39982023-03-07 21:53:50eokorVilágnaptár (45 pont)cpp11Wrong answer 18/453ms3144 KiB
#include <bits/stdc++.h>

using namespace std;

struct datum{
    int e,h,n;
};

int main()
{
    //ifstream cin("in.txt");

    datum norm;
    cin>>norm.e>>norm.h>>norm.n;

        if(norm.h==12 && norm.n==31){
            cout<<norm.e<<" "<<norm.h<<" "<<"VN";
        }
        else if(norm.e%4==0 && norm.h==7 && norm.n==1){
            cout<<norm.e<<" "<<norm.h-1<<" "<<"SZN";
        }
        else if(norm.h==1 || norm.h==4 || norm.h==7 || norm.h==10){
             cout<<norm.e<<" "<<norm.h<<" "<<norm.n;
        }
        else if(norm.n==31){
            cout<<norm.e<<" "<<norm.h+1<<" "<<1;
        }
        else {cout<<norm.e<<" "<<norm.h<<" "<<norm.n;}

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base18/45
1Accepted0/03ms1876 KiB
2Accepted0/03ms2068 KiB
3Accepted0/02ms2152 KiB
4Accepted2/23ms2280 KiB
5Accepted2/22ms2364 KiB
6Accepted3/32ms2360 KiB
7Wrong answer0/32ms2364 KiB
8Accepted3/33ms2500 KiB
9Wrong answer0/32ms2612 KiB
10Accepted3/33ms2712 KiB
11Wrong answer0/33ms2920 KiB
12Wrong answer0/32ms3040 KiB
13Wrong answer0/32ms3012 KiB
14Wrong answer0/32ms3012 KiB
15Wrong answer0/32ms3008 KiB
16Wrong answer0/32ms3016 KiB
17Wrong answer0/32ms3012 KiB
18Accepted2/22ms3016 KiB
19Accepted3/33ms3144 KiB