You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
356 B
14 lines
356 B
nbParticipants = int(input())
|
|
nbEquipes = nbParticipants // 2
|
|
composEquipe = [0] * nbParticipants
|
|
|
|
for loop in range(nbParticipants):
|
|
composEquipe[loop] = int(input())
|
|
|
|
#print()
|
|
|
|
composEquipe.sort()
|
|
loopMax = nbParticipants - 1
|
|
for loop in range(nbEquipes):
|
|
print("{} {}".format(composEquipe[loop], composEquipe[loopMax]))
|
|
loopMax = loopMax - 1
|