38632023-03-03 12:33:42vááááOszthatóság 31-gyelcsharpWrong answer 48/5026ms22756 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);
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/026ms19812 KiB
2Accepted0/026ms20756 KiB
3Accepted3/326ms20716 KiB
4Accepted3/326ms20940 KiB
5Accepted4/426ms21184 KiB
6Accepted4/426ms22024 KiB
7Accepted4/426ms22128 KiB
8Accepted4/425ms21920 KiB
9Accepted4/425ms21828 KiB
10Accepted4/426ms21820 KiB
11Accepted4/425ms21924 KiB
12Accepted4/426ms22576 KiB
13Accepted4/426ms22584 KiB
14Accepted4/426ms22496 KiB
15Accepted2/225ms22588 KiB
16Wrong answer0/225ms22756 KiB