=n:shortest_index=-1shortest_time=float('inf')# 选择剩余执行时间最短的进程foriinrange(n):ifprocesses[i].arrival_time<=current_timeandprocesses[i].remaining_time<shortest_time:shortest_index=i shortest_time=processes[i].remaining_timeifshortest_index==-1:current_time+=1continuep=processes[...