Open jeeyeonLIM opened 3 years ago
def solution(numbers):
answer = []
#numbers = sorted(numbers)
for i in range(len(numbers)):
for j in range(i+1,len(numbers)):
#print(numbers[i]+numbers[j])
sum_= numbers[i]+numbers[j]
if sum_ not in answer:
answer.append(sum_)
else:
continue
return sorted(answer)
문제 설명
제한사항
입출력 예
입출력 예 설명
입출력 예 #1
입출력 예 #2