34882023-02-28 12:36:04BenedekOszthatóság 31-gyelcsharpWrong answer 23/5028ms23792 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _31
{
    class Program
    {
        static void Main(string[] args)
        {
            int alap = int.Parse(Console.ReadLine());
            int b = 0;
            List<int> g = new List<int>();

            while (alap > 18)
            {
                b = alap % 10;
                alap = alap / 10 -  b * 3;
                g.Add(alap);
            }
            if (alap == 0)
            {
                
                if (g.Count != 1)
                {
                    Console.WriteLine("IGEN");
                    foreach (var item in g)
                    {
                        
                        Console.Write(item + " ");
                    }
                }
                else
                {
                    Console.WriteLine("IGEN");
                }
                
            }
            else
            {
                if (g.Count != 1)
                {
                    Console.WriteLine("NEM");
                    foreach (var item in g)
                    {
                        Console.Write(item + " ");

                    }
                }
                else
                {
                    Console.WriteLine("NEM");
                }
                

            }

            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Accepted0/027ms20324 KiB
2Accepted0/027ms20708 KiB
3Wrong answer0/328ms21056 KiB
4Accepted3/328ms21536 KiB
5Accepted4/428ms22108 KiB
6Wrong answer0/428ms22012 KiB
7Wrong answer0/428ms22168 KiB
8Accepted4/427ms22308 KiB
9Accepted4/427ms22976 KiB
10Wrong answer0/427ms22900 KiB
11Accepted4/428ms23204 KiB
12Wrong answer0/427ms22888 KiB
13Wrong answer0/427ms23540 KiB
14Accepted4/427ms23420 KiB
15Wrong answer0/226ms23792 KiB
16Wrong answer0/226ms23520 KiB