34962023-02-28 12:57:37BenedekOszthatóság 31-gyelcsharpWrong answer 25/5028ms22904 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 >= 31)
            {
                b = alap % 10;
                alap = alap / 10 -  b * 3;
                g.Add(alap);
            }
            if (alap == 0)
            {
                    Console.WriteLine("IGEN");
                    foreach (var item in g)
                    {
                        Console.Write(item + " ");
                    }
                
            }
            else
            {
                if (g.Count != 1)
                {
                    Console.WriteLine("NEM");
                    foreach (var item in g)
                    {
                        Console.Write(item + " ");
                    }
                }
                else
                {
                    Console.WriteLine("NEM");
                }
                

            }



            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/028ms20488 KiB
2Accepted0/028ms20936 KiB
3Wrong answer0/328ms21236 KiB
4Accepted3/327ms21776 KiB
5Accepted4/428ms22120 KiB
6Wrong answer0/428ms22172 KiB
7Wrong answer0/428ms22068 KiB
8Accepted4/428ms22344 KiB
9Accepted4/428ms22708 KiB
10Wrong answer0/428ms22900 KiB
11Accepted4/428ms22768 KiB
12Wrong answer0/428ms22876 KiB
13Wrong answer0/428ms22824 KiB
14Accepted4/428ms22488 KiB
15Accepted2/228ms22484 KiB
16Wrong answer0/227ms22904 KiB