36162023-03-01 10:52:09BenedekOszthatóság 37-telcsharpAccepted 40/4028ms23748 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _37
{
    class Program
    {
        static void Main(string[] args)
        {
            int szam = int.Parse(Console.ReadLine());
            if (szam % 37 == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }
            int b = 0;
            List<int> g = new List<int>();
            while (szam > 0)
            {
                b = szam % 10 * 11;
                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
base40/40
1Accepted0/028ms20240 KiB
2Accepted0/027ms20496 KiB
3Accepted3/327ms21100 KiB
4Accepted3/328ms21476 KiB
5Accepted3/327ms21368 KiB
6Accepted3/327ms22276 KiB
7Accepted3/328ms22364 KiB
8Accepted3/328ms22560 KiB
9Accepted3/328ms23036 KiB
10Accepted3/327ms22808 KiB
11Accepted3/328ms22460 KiB
12Accepted3/328ms23096 KiB
13Accepted3/328ms23180 KiB
14Accepted3/327ms23680 KiB
15Accepted2/227ms23424 KiB
16Accepted2/227ms23748 KiB