81042024-01-12 13:34:28Leventusz09Oszthatóság 17-tel (60 pont)csharpAccepted 60/6027ms22868 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Oszthatóság_17tel{
    class Program{
        static void Main(){
            int N = int.Parse(Console.ReadLine());
            int temp = N;
            string o2 = "";
            while(N>9){
                N = (N / 10) - (5 * (N%10));
                if (N < 0) break;
                o2 += N + " ";
            }
            if (N % 17 == 0) Console.WriteLine("IGEN");
            else Console.WriteLine("NEM");
            Console.WriteLine(o2);
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/026ms20348 KiB
2Accepted0/025ms20640 KiB
3Accepted3/327ms21288 KiB
4Accepted3/326ms21460 KiB
5Accepted4/425ms21784 KiB
6Accepted4/425ms21940 KiB
7Accepted4/425ms22212 KiB
8Accepted5/525ms22380 KiB
9Accepted5/525ms22412 KiB
10Accepted5/526ms22696 KiB
11Accepted5/526ms22716 KiB
12Accepted6/625ms22604 KiB
13Accepted6/625ms22868 KiB
14Accepted6/625ms22488 KiB
15Accepted2/225ms22424 KiB
16Accepted2/225ms22572 KiB