Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 39,535 MiB 0,000 s OK
#2 10/10 33,270 MiB 0,000 s OK
#3 10/10 34,770 MiB 0,000 s OK
#4 10/10 37,266 MiB 0,000 s OK
#5 10/10 35,172 MiB 0,000 s OK
#6 10/10 39,918 MiB 0,000 s OK
#7 10/10 38,156 MiB 0,000 s OK
#8 10/10 37,723 MiB 0,000 s OK
#9 10/10 38,301 MiB 0,000 s OK
#10 10/10 37,359 MiB 0,000 s OK

Ocenjevani program (Bla.java):
import java.util.Scanner;

public class Bla {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt(), m = scanner.nextInt();


        for (int i = 1; i <= n - m - 1; i++) {
            System.out.print(i + " ");
        }

        for (int i = 0; i < m; i++) {
            System.out.print((n - m) + " ");
        }

        System.out.println();
    }

}