📅  最后修改于: 2022-03-11 14:56:59.760000             🧑  作者: Mango
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()