📜  course à trois jambes france ioi - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:59.760000             🧑  作者: Mango

代码示例1
nbParticipants=int(input())
participant=[0]*nbParticipants
 
for i in range (nbParticipants):
    participant[i]=int(input())
 
participant.sort()
 
for i in range (nbParticipants//2):
    print("{} {}".format(min(participant),(max(participant))))
    participant.pop(0)
    participant.pop()