Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 35,051 MiB 0,000 s OK
#2 10/10 33,422 MiB 0,000 s OK
#3 10/10 36,625 MiB 0,000 s OK
#4 10/10 34,043 MiB 0,000 s OK
#5 10/10 36,098 MiB 0,000 s OK
#6 10/10 36,836 MiB 0,000 s OK
#7 10/10 38,355 MiB 0,000 s OK
#8 10/10 33,840 MiB 0,000 s OK
#9 10/10 35,465 MiB 0,000 s OK
#10 10/10 34,578 MiB 0,000 s OK

Ocenjevani program (n2.java):
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class n2 {

	public static void main(String[] args) throws Exception {
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer(in.readLine());
		int N=Integer.parseInt(st.nextToken());
		int m=Integer.parseInt(st.nextToken());
		for(int i=0;i<N-m; i++) { 
			System.out.print(i+1+" ");
		}
		for(int i=N-m;i<N-1;i++) {
			System.out.print(N-m+" ");
		}
		System.out.println();
	}

}