38472023-03-03 11:35:17vááááOszthatóság 31-gyelcsharpWrong answer 48/5027ms24032 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/026ms19864 KiB
2Accepted0/025ms20416 KiB
3Accepted3/325ms20608 KiB
4Accepted3/325ms20952 KiB
5Accepted4/427ms21052 KiB
6Accepted4/426ms21752 KiB
7Accepted4/426ms22348 KiB
8Accepted4/426ms22328 KiB
9Accepted4/426ms23004 KiB
10Accepted4/425ms23232 KiB
11Accepted4/425ms23056 KiB
12Accepted4/425ms23340 KiB
13Accepted4/425ms23440 KiB
14Accepted4/427ms24028 KiB
15Accepted2/227ms23872 KiB
16Wrong answer0/225ms24032 KiB