풀이기록용이며 문제는 이코테 2021 참고
--------------------- 2022 10 07
--------------------- 2022 10 07
--------------------- 2022 10 07
n = list(map(int,input()));
n.sort();
result = 0;
while len(n) > 0:
item = n.pop();
if item > 1 :
if result > 1:
result *= item;
else:
result += item;
else :
result += item;
print(result);
--------------------- 2022 10 07

덧글