老六
2024-10-26 19:18:18
发布于:浙江
1阅读
0回复
0点赞
N=int(input())
employees=[]
for _ in range(N):
id,salary,department,level=list(map(int,input().split()))
employees.append((id, salary, department, level))
def sort_key(employee):
id, salary, department, level = employee
return (-salary, -level, department, id)
sorted_employees = sorted(employees, key=sort_key)
sorted_ids = [employee[0] for employee in sorted_employees]
print(" ".join(map(str, sorted_ids)))
这里空空如也
有帮助,赞一个