81342024-01-12 14:17:48Boti010Oszthatóság 17-tel (60 pont)csharpAccepted 60/6027ms22196 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _17_tel_oszthatóság
{
    class Program
    {
        static void Main(string[] args)
        {
            string q = Console.ReadLine();
            int n = int.Parse(q);
            int m = 0;
            if (n % 17 == 0)
            {
                Console.WriteLine("IGEN");
            }
            else
            {
                Console.WriteLine("NEM");
            }
            while (n > 9)
            {
                m = n % 10;
                n = n / 10;
                n = n - (m * 5);
                if (n < 0) break;
                Console.Write(n + " ");
            }
            Console.WriteLine();
            Console.ReadKey();
            
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/027ms20520 KiB
2Accepted0/026ms20968 KiB
3Accepted3/326ms20720 KiB
4Accepted3/326ms21164 KiB
5Accepted4/426ms21532 KiB
6Accepted4/427ms21480 KiB
7Accepted4/426ms21760 KiB
8Accepted5/526ms21708 KiB
9Accepted5/526ms21936 KiB
10Accepted5/527ms21852 KiB
11Accepted5/527ms22180 KiB
12Accepted6/627ms22004 KiB
13Accepted6/627ms22156 KiB
14Accepted6/626ms22196 KiB
15Accepted2/226ms22036 KiB
16Accepted2/226ms21936 KiB