/images/jg_02.jpg

SW Expert Academy_D3 4466, 4406, 4371, 4299

D3_4466_최대 성적표 만들기

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
for T in range(int(input())):
    N, K = map(int, input().split())
    score = list(map(int, input().split()))

    score.sort(reverse=True)

    result = 0
    for i in range(K):
        result += score[i]

    print('#{} {}'.format(T+1, result))

D3_4406_모음이 보이지 않는 사람

1
2
3
4
5
6
7
for T in range(int(input())):
    sent = input()
    result = ''
    for i in sent:
        if i not in 'aeiou':
            result += i
    print('#{} {}'.format(T+1, result))

D3_4371_항구에 들어오는 배