74882024-01-09 10:32:19NotYouVilágnaptár (45 pont)csharpWrong answer 18/4532ms26036 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace vilagnaptar
{
    class Program
    {
        static void Main(string[] args)
        {
            int ev = 0;
            int ho = 0;
            int nap = 0;
            int[] sor = Console.ReadLine().Split().Select(int.Parse).ToArray();
            string szn = "SZN";
            string vn = "VN";
            ev = sor[0];
            ho = sor[1];
            nap = sor[2];

            if (ev %4 == 0 && ho == 7 && nap == 1)
            {
                ho = 6;
                Console.Write(ev);
                Console.Write(" ");
                Console.Write(ho);
                Console.Write(" ");
                Console.Write(szn);
            }
            else if (ho == 12 && nap == 31)
            { 
                Console.Write(ev);
                Console.Write(" ");
                Console.Write(ho);
                Console.Write(" ");
                Console.Write(vn);
            }
            else
            { 
                Console.Write(ev);
                Console.Write(" ");
                Console.Write(ho);
                Console.Write(" ");
                Console.Write(nap);
            }

            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base18/45
1Accepted0/030ms21972 KiB
2Accepted0/029ms22556 KiB
3Accepted0/029ms22684 KiB
4Accepted2/229ms23020 KiB
5Accepted2/232ms23320 KiB
6Accepted3/330ms24032 KiB
7Wrong answer0/329ms24076 KiB
8Accepted3/332ms24296 KiB
9Wrong answer0/332ms24648 KiB
10Accepted3/332ms24732 KiB
11Wrong answer0/332ms25104 KiB
12Wrong answer0/332ms25200 KiB
13Wrong answer0/330ms25644 KiB
14Wrong answer0/330ms25668 KiB
15Wrong answer0/330ms25304 KiB
16Wrong answer0/332ms25664 KiB
17Wrong answer0/332ms25764 KiB
18Accepted2/230ms25632 KiB
19Accepted3/332ms26036 KiB