38642023-03-03 12:34:56vááááOszthatóság 31-gyelcsharpAccepted 50/5027ms22648 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 szam = int.Parse(Console.ReadLine());
            int utso;
            string ki = "";

            while(szam > 0)
            {
                utso = szam % 10;
                szam = szam / 10;
                szam = szam - utso * 3;
                if(szam >-1) ki += szam + " ";
            }

            if (szam == 0) Console.WriteLine("IGEN");
            else Console.WriteLine("NEM");
            if (ki != "") Console.WriteLine(ki);
            else Console.WriteLine();
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/027ms19960 KiB
2Accepted0/026ms20456 KiB
3Accepted3/326ms21084 KiB
4Accepted3/326ms21044 KiB
5Accepted4/426ms20680 KiB
6Accepted4/426ms21100 KiB
7Accepted4/426ms21668 KiB
8Accepted4/426ms21676 KiB
9Accepted4/425ms21720 KiB
10Accepted4/425ms22408 KiB
11Accepted4/426ms22388 KiB
12Accepted4/426ms22472 KiB
13Accepted4/425ms22372 KiB
14Accepted4/425ms22484 KiB
15Accepted2/226ms22648 KiB
16Accepted2/226ms22352 KiB