74622024-01-09 09:46:15TortelliniJrOszthatóság 31-gyelcsharpWrong answer 48/5027ms23540 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Oszth31Real
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int f = n;
            int g = 0;
            if (n % 31 == 0)
            {
                Console.WriteLine("IGEN");
                while (f != 0)
                {
                    g = f % 10;
                    f /= 10;
                    f -= 3 * g;
                    Console.Write(f + " ");
                }
            }
            else
            {
                Console.WriteLine("NEM");
                while (!(f <= 0))
                {
                    g = f % 10;
                    f /= 10;
                    f -= 3 * g;
                    if (!(f < 0))
                    {
                        Console.Write(f + " ");
                    }
                }
            }
            Console.ReadLine();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/026ms20184 KiB
2Accepted0/026ms20948 KiB
3Accepted3/326ms21036 KiB
4Accepted3/327ms21588 KiB
5Accepted4/426ms21944 KiB
6Accepted4/427ms22184 KiB
7Accepted4/426ms22828 KiB
8Accepted4/426ms22520 KiB
9Accepted4/426ms22444 KiB
10Accepted4/426ms22640 KiB
11Accepted4/427ms22860 KiB
12Accepted4/426ms23112 KiB
13Accepted4/427ms23412 KiB
14Accepted4/427ms23032 KiB
15Accepted2/226ms23540 KiB
16Wrong answer0/226ms23212 KiB