Created
March 30, 2021 19:29
-
-
Save serg1us/f6e2c4331ba86d66c7f80cdf91506b2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A = list(map(int, input().split())) | |
l = len(A) | |
if l % 2 == 0: | |
l = l // 2 | |
a1 = sorted(A[:l]) | |
a2 = sorted(A[l:], reverse=True) | |
A = a1 + a2 | |
print(*A) | |
else: | |
print('Ошибка, попробуй поставить пробел') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment