Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 37,680 MiB 0,000 s OK
#2 10/10 41,750 MiB 0,000 s OK
#3 10/10 36,586 MiB 0,000 s OK
#4 10/10 38,602 MiB 0,000 s OK
#5 10/10 38,480 MiB 0,000 s OK
#6 10/10 37,898 MiB 0,000 s OK
#7 10/10 38,570 MiB 0,000 s OK
#8 10/10 37,742 MiB 0,000 s OK
#9 10/10 37,332 MiB 0,000 s OK
#10 10/10 40,418 MiB 0,000 s OK

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


public class prva {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		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 i = 0; i < m-1; i++) {
			System.out.print("1 ");
		}

	}

}