209342026-01-11 14:46:42szjVilágnaptár (45 pont)cpp17Wrong answer 25/452ms536 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    short int a,b,c,d;
    cin >> a >> b >> c;
    short int rendes[12]= {31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365};
    short int vilag[13]= {0, 31, 61, 91, 122, 152, 182, 213, 243, 273, 304, 334, 364};
    d=rendes[b-2]+c;
    cout << a << " ";
    if(d==365)
    {
        cout << b << " VN";
        return 0;
    }
    else if(a%4==0)
    {
        if(d==182)
        {
            cout << b << " SZN";
            return 0;
        }
        cout << "asdfsdf";
        return 0;
        if(d>59)d++;
        if(d>182)d--;
    }
    for(int i=0; i<12; i++)
    {
        if(d<=vilag[i+1])
        {
            cout << i+1 << " " << d-vilag[i];
            break;
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/45
1Accepted0/01ms316 KiB
2Wrong answer0/01ms536 KiB
3Accepted0/01ms500 KiB
4Accepted2/21ms316 KiB
5Accepted2/22ms316 KiB
6Wrong answer0/31ms360 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms316 KiB
9Accepted3/31ms316 KiB
10Wrong answer0/31ms384 KiB
11Wrong answer0/31ms316 KiB
12Accepted3/31ms316 KiB
13Accepted3/31ms512 KiB
14Accepted3/31ms316 KiB
15Accepted3/31ms316 KiB
16Accepted3/31ms508 KiB
17Accepted3/31ms316 KiB
18Wrong answer0/22ms316 KiB
19Wrong answer0/32ms316 KiB