This code implements priority queues for job processing. It take first input in line 1 as workers and second input in line 1 as no of job and inputs in line 2 are t(i) time