34852023-02-28 12:29:56BenedekOszthatóság 31-gyelcsharpWrong answer 25/5028ms24028 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)
            {
                Console.WriteLine("IGEN");
                foreach (var item in g)
                {
                    Console.Write(item + " ");
                }
                
            }
            else
            {
                Console.WriteLine("NEM");
                foreach (var item in g)
                {
                    Console.Write( item + " ");

                }

            }

            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/028ms20360 KiB
2Accepted0/028ms20828 KiB
3Wrong answer0/328ms21252 KiB
4Accepted3/328ms21548 KiB
5Accepted4/427ms21816 KiB
6Wrong answer0/427ms22216 KiB
7Wrong answer0/428ms22552 KiB
8Accepted4/428ms22436 KiB
9Accepted4/428ms22600 KiB
10Wrong answer0/428ms22804 KiB
11Accepted4/428ms22704 KiB
12Wrong answer0/428ms23292 KiB
13Wrong answer0/428ms23368 KiB
14Accepted4/427ms24028 KiB
15Accepted2/228ms23604 KiB
16Wrong answer0/227ms23464 KiB