39972023-03-07 21:52:10eokorVilágnaptár (45 pont)cpp11Wrong answer 18/453ms4340 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){
            if(norm.n==1)
                cout<<norm.e<<" "<<norm.h-1<<" "<<30;
            else 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/03ms1748 KiB
2Accepted0/03ms2192 KiB
3Accepted0/03ms2348 KiB
4Accepted2/23ms2392 KiB
5Accepted2/23ms2628 KiB
6Accepted3/33ms2828 KiB
7Wrong answer0/33ms3044 KiB
8Wrong answer0/33ms3260 KiB
9Accepted3/32ms3288 KiB
10Accepted3/33ms3500 KiB
11Wrong answer0/33ms3788 KiB
12Wrong answer0/33ms3920 KiB
13Wrong answer0/33ms3816 KiB
14Wrong answer0/33ms3972 KiB
15Wrong answer0/33ms3892 KiB
16Wrong answer0/32ms3892 KiB
17Accepted3/33ms4136 KiB
18Accepted2/23ms4236 KiB
19Wrong answer0/33ms4340 KiB