http://codeup.kr/problem.php?id=1425
Codeup 1425 - 자리 배치
n, c = map(int, input().split())
students = list(map(int, input().split()))
students.sort()
for i in range(0, int(n/c)+1):
for j in range(i*c, i*c+c):
if j >= len(students):
break
print(students[j], end=' ')
print()
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
Codeup 1440 - 비교 (0) | 2019.03.12 |
---|---|
Codeup 1430 - 기억력 테스트 2 (0) | 2019.03.12 |
Codeup 1420 - 3등 찾기 (0) | 2019.03.11 |
Codeup 1419 - love 2 (0) | 2019.03.11 |
Codeup 1418 - t를 찾아라 (0) | 2019.03.10 |