1
2
3
4
5
|
s=sorted(list(map(int, input().split('+'))))
ans=str(s[0])
for i in range(1, len(s)):
ans+='+%d'%(s[i])
print(ans)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
codeforces 520A - Pangram (0) | 2022.04.29 |
---|---|
codeforces 1328A - Divisibility Problem (0) | 2022.04.29 |
Codeforces 734A - Anton and Danik (0) | 2022.04.29 |
codeforces 41A - Translation (0) | 2022.04.28 |
codeforces 59A - Word (0) | 2022.04.28 |
댓글