import numpy

jobs = [15, 30, 15, 5, 10]
servers = 3
jobs = [(i, x) for i, x in enumerate(jobs)]
server_job_sequence = [ [] for _ in range(servers)]
server_next_available_time = {x: 0 for x in range(0, servers)}
jobs = sorted(jobs, key= lambda x: x[1], reverse=True)

for each_job in jobs:
    print(each_job)
    next_server = min(server_next_available_time, key=server_next_available_time.get)
    server_job_sequence[next_server].append(each_job[0])
    server_next_available_time[next_server] += each_job[1]
print(server_job_sequence)
