File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 11# [ level 2] 가장 큰 수 - 42746
22
3- [ 문제 링크] ( https://school.programmers.co.kr/learn/courses/30/lessons/42746#qna )
3+ [ 문제 링크] ( https://school.programmers.co.kr/learn/courses/30/lessons/42746 )
44
55### 성능 요약
66
7- 메모리: 27 .1 MB, 시간: 1417.15 ms
7+ 메모리: 26 .1 MB, 시간: 1405.62 ms
88
99### 구분
1010
1616
1717### 제출 일자
1818
19- 2024년 09월 02일 17:14:38
19+ 2025년 04월 11일 17:37:12
2020
2121### 문제 설명
2222
Original file line number Diff line number Diff line change 11def solution (numbers ):
2- ans = ''
3- numbers = list (map (str , numbers ))
4- numbers .sort (key = lambda x : x * 3 , reverse = True )
5-
6- for i in numbers :
7- ans += i
8- return str (int (ans ))
2+ nums = [str (i ) for i in numbers ]
3+ nums .sort (key = lambda x : x * 3 , reverse = True )
4+ return str (int ("" .join (nums )))
You can’t perform that action at this time.
0 commit comments