Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 35,918 MiB 0,000 s OK
#2 10/10 33,832 MiB 0,000 s OK
#3 10/10 37,070 MiB 0,000 s OK
#4 10/10 33,648 MiB 0,000 s OK
#5 10/10 30,191 MiB 0,000 s OK
#6 10/10 40,133 MiB 0,000 s OK
#7 10/10 35,406 MiB 0,000 s OK
#8 10/10 40,207 MiB 0,000 s OK
#9 10/10 38,105 MiB 0,000 s OK
#10 10/10 38,027 MiB 0,000 s OK

Ocenjevani program (Prva.java):
import java.util.*;

public class Prva{

	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		for(int i = 1; i <= n - m ; i++)
		    System.out.print(i+" ");
		for(int j = 1; j < m; j++)
		    System.out.print("1 ");
	}

}