Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 1,520 MiB 0,000 s OK
#2 10/10 1,480 MiB 0,000 s OK
#3 10/10 1,512 MiB 0,000 s OK
#4 10/10 1,516 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,520 MiB 0,000 s OK
#9 10/10 1,480 MiB 0,000 s OK
#10 10/10 1,520 MiB 0,000 s OK

Ocenjevani program (hiearhija.c):
#include <stdio.h>
#include <stdlib.h>

int main() {
    int i = 0, n = 0, m = 0;
    scanf("%d %d", &n, &m);
    for (; i < (n - m); i++) {
        printf(i == 0 ? "%d" : " %d", i + 1);
    }
    for (; i < n - 1; i++) {
        printf(i == 0 ? "%d" : " %d", n - m);
    }
    printf("\n");
    return 0;
}