81292024-01-12 14:10:10Boti010Oszthatóság 17-tel (60 pont)csharpWrong answer 56/6027ms23224 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.ReadKey();
            
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/026ms20352 KiB
2Accepted0/027ms20716 KiB
3Accepted3/326ms20676 KiB
4Accepted3/326ms20936 KiB
5Accepted4/426ms21144 KiB
6Accepted4/427ms21328 KiB
7Accepted4/426ms21564 KiB
8Accepted5/526ms21648 KiB
9Accepted5/527ms21628 KiB
10Accepted5/526ms22120 KiB
11Accepted5/527ms22320 KiB
12Accepted6/627ms22516 KiB
13Accepted6/626ms22476 KiB
14Accepted6/626ms23104 KiB
15Wrong answer0/226ms23224 KiB
16Wrong answer0/225ms23012 KiB