2780-블랙잭 (python)
>> 처음 작성한 코드 (통과) N, M = map(int, input().split(' ')) cards = list(map(int, input().split(' '))) totals = [] for x in range(N-1): for y in range(x+1, N-1): for z in range(y+1, N): total = cards[x] + cards[y] + cards[z] if total > 다른 코드 참고 N, M = map(int, input().split(' ')) cards = list(map(int, input().split(' '))) result = 0 for x in range(N-1): for y in range(x+1, N-1): for z in range(y+1, N)..
2020. 9. 29.