36142023-03-01 10:47:12tothgergelyOszthatóság 17-tel (60 pont)csharpWrong answer 5/6028ms24132 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>();
            while (n > 0)
            {
                    a = n % 10;
                    n = n / 10 - a * 5;
                    l.Add(n);
            }
            
            if (n == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }
            foreach (var i in l)
            {
                Console.Write(i +   " ");
            }
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base5/60
1Wrong answer0/028ms20688 KiB
2Wrong answer0/028ms21304 KiB
3Wrong answer0/328ms21512 KiB
4Wrong answer0/327ms21908 KiB
5Wrong answer0/427ms22060 KiB
6Wrong answer0/427ms22264 KiB
7Wrong answer0/427ms22048 KiB
8Wrong answer0/528ms22492 KiB
9Accepted5/528ms22672 KiB
10Wrong answer0/528ms23116 KiB
11Wrong answer0/528ms23472 KiB
12Wrong answer0/628ms23648 KiB
13Wrong answer0/628ms23840 KiB
14Wrong answer0/628ms23816 KiB
15Wrong answer0/228ms24132 KiB
16Wrong answer0/228ms24116 KiB