36122023-03-01 10:30:26BenedekOszthatóság 17-tel (60 pont)csharpAccepted 60/6028ms23348 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace _31
{
    class Program
    {
        static void Main(string[] args)
        {


            int alap = int.Parse(Console.ReadLine());
            if (alap % 17 == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }
            int b = 0;
            List<int> g = new List<int>();

            while (alap > 0)
            {
                b = alap % 10;
                alap = alap / 10 - b * 5;
                if (alap < 0)
                {
                    break;
                }
                g.Add(alap);
            }
            if (g.Count > 0)
            {
                foreach (var item in g)
                {
                    Console.Write(item + " ");
                }
            }
            else
            {
                Console.WriteLine();
            }
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/028ms20340 KiB
2Accepted0/028ms20760 KiB
3Accepted3/328ms21112 KiB
4Accepted3/327ms21452 KiB
5Accepted4/427ms21576 KiB
6Accepted4/428ms21756 KiB
7Accepted4/428ms22192 KiB
8Accepted5/527ms22932 KiB
9Accepted5/527ms22988 KiB
10Accepted5/528ms23052 KiB
11Accepted5/527ms22872 KiB
12Accepted6/628ms23060 KiB
13Accepted6/627ms23076 KiB
14Accepted6/628ms23096 KiB
15Accepted2/226ms23348 KiB
16Accepted2/226ms23196 KiB