36152023-03-01 10:51:38tothgergelyOszthatóság 31-gyelcsharpWrong answer 6/5028ms23680 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _17
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            int a = 0;
            List<int> l = new List<int>();
            if (n  % 17 == 0)
            {
                Console.WriteLine("IGEN"); 
            }
            else
            {
                Console.WriteLine("NEM");
            }
            while (n > 0)
            {
                    a = n % 10;
                    n = n / 10 - a * 5;
                    
                if (n < 0)
                {
                    break;
                }
                l.Add(n);
            }

            if (l.Count > 0)
            { 
                foreach (var i in l)
                {
                    Console.Write(i + " ");
                }
            }
            else
            {
                Console.WriteLine();
            }

            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base6/50
1Wrong answer0/028ms20184 KiB
2Wrong answer0/028ms20852 KiB
3Wrong answer0/328ms21284 KiB
4Wrong answer0/327ms20928 KiB
5Wrong answer0/428ms21556 KiB
6Wrong answer0/428ms21792 KiB
7Wrong answer0/428ms21740 KiB
8Wrong answer0/428ms22020 KiB
9Wrong answer0/427ms22212 KiB
10Wrong answer0/428ms22300 KiB
11Wrong answer0/428ms22512 KiB
12Accepted4/427ms22688 KiB
13Wrong answer0/427ms23072 KiB
14Wrong answer0/427ms23148 KiB
15Wrong answer0/226ms23520 KiB
16Accepted2/226ms23680 KiB