#include <stdio.h> #include <stdlib.h> #include <.h> N 100 scheduler( task[], n, system_task[], (task == NULL || n < || system_task == NULL || user_task == printf( i = , j = , k = temp = (i = ; i < n; i++ system_task[i] = memset(user_task, , n * ( (i = ; i < n - ; i++ (j = ; j < n - - i; j++ (task[j] > task[j + temp = task[j + task[j + ] = task[j] = temp = system_task[j + system_task[j + ] = system_task[j] = (i = , j = , k = ; i < n; i++ (task[i] >= && task[i] < system_task[j] = (i > system_task[i] = - j++ (task[i] >= && task[i] <= user_task[k] = system_task[i] = - k++ printf( system_task[i] = - n = i = printf( scanf(, & (n > N || n < printf( *task = ( *)malloc(n * ( *system_task = ( *)malloc(n * ( *user_task = ( *)malloc(n * ( printf( (i = ; i < n; i++ scanf(, & printf( (i = ; i < n; i++ (system_task[i] == - printf( printf( printf( (i = ; i < n; i++ (user_task[i] == - printf( printf(