Rezultati

Up. imeNalogaJezikRezultatČas oddaje
FRISPI-2017 Hierarhija C 100/100OK 11. maj '17 @ 16:51

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 1,480 MiB 0,000 s OK
#2 10/10 1,480 MiB 0,000 s OK
#3 10/10 1,520 MiB 0,000 s OK
#4 10/10 1,480 MiB 0,000 s OK
#5 10/10 1,480 MiB 0,000 s OK
#6 10/10 1,480 MiB 0,000 s OK
#7 10/10 1,520 MiB 0,000 s OK
#8 10/10 1,480 MiB 0,000 s OK
#9 10/10 1,473 MiB 0,000 s OK
#10 10/10 1,480 MiB 0,000 s OK

Ocenjevani program (hier.c):

#include <stdio.h>
#include <stdlib.h>


int main()  {
    int N;
    int M;
    
    scanf("%d %d", &N, &M);
    int i;
    for (i = 0; i < N-M-1; i++){
        printf("%d ", i+1);
    }
    for (int j = 0; j < M; j++){
        printf("%d ", i+1);
    }
    return 0;
}
//delaj Janez!!!