Rezultati

Up. imeNalogaJezikRezultatČas oddaje
bitikubiti-2017 Hierarhija Java 100/100OK 11. maj '17 @ 16:42

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 34,887 MiB 0,000 s OK
#2 10/10 35,012 MiB 0,000 s OK
#3 10/10 36,594 MiB 0,000 s OK
#4 10/10 35,660 MiB 0,000 s OK
#5 10/10 37,340 MiB 0,000 s OK
#6 10/10 35,051 MiB 0,000 s OK
#7 10/10 39,020 MiB 0,000 s OK
#8 10/10 35,566 MiB 0,000 s OK
#9 10/10 40,125 MiB 0,000 s OK
#10 10/10 39,555 MiB 0,000 s OK

Ocenjevani program (A.java):
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by bitikubiti-2017 on 5/11/17.
 */
public class A {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] split = br.readLine().split(" ");
        int N = Integer.parseInt(split[0]);
        int M = Integer.parseInt(split[1]);
        for (int i = 1; i <= N-M ; i++) {
            System.out.print(i + " ");
        }
        for (int i = N-M; i < N -1; i++) {
            System.out.print(N-M);
            if(i < N-2)System.out.print(" ");
        }
        System.out.println();
    }
}