37062023-03-02 12:27:18AGergoOszthatóság 31-gyelcsharpWrong answer 48/5026ms22520 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace osztasharmicegy
{
    class Program
    {
        static void Main(string[] args)
        {

            int szam = int.Parse(Console.ReadLine());

            if (szam % 31 == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }

            szam = (szam / 10) - (3 * (szam % 10));

            while (szam > 0)
            {
                Console.Write(szam + " ");
                szam = (szam / 10) - (3 * (szam % 10));
                
            }

            if (szam == 0)
            {
                Console.Write(0);
            }

        }
    }
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/025ms20184 KiB
2Accepted0/026ms20620 KiB
3Accepted3/326ms20404 KiB
4Accepted3/326ms21048 KiB
5Accepted4/426ms21352 KiB
6Accepted4/425ms21764 KiB
7Accepted4/426ms21560 KiB
8Accepted4/426ms21468 KiB
9Accepted4/425ms21788 KiB
10Accepted4/425ms21892 KiB
11Accepted4/426ms22196 KiB
12Accepted4/426ms22520 KiB
13Accepted4/426ms22268 KiB
14Accepted4/425ms22184 KiB
15Accepted2/225ms22024 KiB
16Wrong answer0/225ms22408 KiB