100962024-03-26 18:48:11VargusVilágnaptár (45 pont)cpp17Wrong answer 15/453ms3720 KiB
#include <iostream>
#define ll long long

using namespace std;

int main()
{
    ll ev, ho, nap;
    cin >> ev >> ho >> nap;
    if (ev % 4 == 0 && ho > 6)
    {
        if (nap == 1)
            cout << ev << " " << ho - 1 << " SZN";
        else
            cout << ev << " " << ho << " SZN";
    }
    else if (ho == 12 && nap == 31)
    {
        cout << ev << " " << ho << " VN";
    }
    else
        cout << ev << " " << ho << " " << nap;
}
SubtaskSumTestVerdictTimeMemory
base15/45
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted0/03ms2364 KiB
4Accepted2/23ms2212 KiB
5Accepted2/22ms2280 KiB
6Accepted3/33ms2412 KiB
7Wrong answer0/33ms2624 KiB
8Accepted3/33ms2716 KiB
9Wrong answer0/33ms2848 KiB
10Wrong answer0/33ms3060 KiB
11Wrong answer0/33ms3312 KiB
12Wrong answer0/33ms3368 KiB
13Wrong answer0/32ms3384 KiB
14Wrong answer0/32ms3384 KiB
15Wrong answer0/33ms3388 KiB
16Wrong answer0/33ms3424 KiB
17Wrong answer0/32ms3400 KiB
18Accepted2/23ms3556 KiB
19Accepted3/33ms3720 KiB