34762023-02-28 12:10:03tothgergelyOszthatóság 31-gyelcsharpWrong answer 25/5028ms23808 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            int b = 0;
            List<int> l = new List<int>();
            while (n > 0)
            {
                
                b = n % 10;
                n = n / 10 - b * 3;
                l.Add(n);
                
                
            }
            if (n == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }
            foreach (var i in l)
            {
                Console.Write(i + " ");
            }
            
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/028ms20456 KiB
2Wrong answer0/027ms20608 KiB
3Wrong answer0/328ms21104 KiB
4Accepted3/328ms21632 KiB
5Accepted4/428ms21976 KiB
6Wrong answer0/428ms22104 KiB
7Wrong answer0/427ms22588 KiB
8Accepted4/428ms22432 KiB
9Accepted4/428ms22840 KiB
10Wrong answer0/428ms22604 KiB
11Accepted4/428ms22900 KiB
12Wrong answer0/428ms23052 KiB
13Wrong answer0/428ms23132 KiB
14Accepted4/428ms23496 KiB
15Accepted2/228ms23764 KiB
16Wrong answer0/228ms23808 KiB