36132023-03-01 10:44:06BenedekOszthatóság 17-tel (60 pont)csharpAccepted 60/6028ms23376 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _11_o
{
    class Program
    {
        static void Main(string[] args)
        {
            int szam = int.Parse(Console.ReadLine());
            if (szam % 17 == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }
            int b = 0;
            List<int> g = new List<int>();
            while (szam > 0)
            {
                b = szam % 10 * 5;
                szam = szam / 10 - b;
                if (szam < 0)
                {
                    break;
                }
                g.Add(szam);
            }
            
            if (g.Count > 0)
            {
                foreach (var item in g)
                {
                    Console.Write(item + " ");
                }
                
            }
            else
            {
                    Console.WriteLine();
            }
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/028ms20804 KiB
2Accepted0/028ms20968 KiB
3Accepted3/328ms21324 KiB
4Accepted3/328ms21620 KiB
5Accepted4/427ms21504 KiB
6Accepted4/428ms21456 KiB
7Accepted4/427ms21552 KiB
8Accepted5/528ms21872 KiB
9Accepted5/527ms22004 KiB
10Accepted5/528ms22416 KiB
11Accepted5/528ms22796 KiB
12Accepted6/627ms22680 KiB
13Accepted6/628ms23152 KiB
14Accepted6/628ms23144 KiB
15Accepted2/227ms23376 KiB
16Accepted2/226ms23356 KiB