Rezultati

Up. imeNalogaJezikRezultatČas oddaje
CryADsisAM Hierarhija C# 100/100OK 11. maj '17 @ 16:55

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 18,320 MiB 0,000 s OK
#2 10/10 18,414 MiB 0,000 s OK
#3 10/10 20,379 MiB 0,000 s OK
#4 10/10 22,441 MiB 0,000 s OK
#5 10/10 18,785 MiB 0,000 s OK
#6 10/10 20,453 MiB 0,000 s OK
#7 10/10 20,379 MiB 0,000 s OK
#8 10/10 22,379 MiB 0,000 s OK
#9 10/10 16,129 MiB 0,000 s OK
#10 10/10 14,469 MiB 0,000 s OK

Ocenjevani program (Program.cs):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UPM_Kolo3
{
    class Program
    {
        static int N; // >= 2
        static int M; // >= 1
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            N = int.Parse(input[0]);
            M = int.Parse(input[1]);

            
            int max = N - 1;
            int razlicnih = N - M;
            string odg = "";

            for (int i = 0; i < M; i++) odg += "1 ";
            for (int i = 0; i < max - M; i++) odg += (i + 2) + " ";

            Console.WriteLine(odg);
        }
    }
}