Савицкая Анастасия, 125ая CountSort 1868 | Сапрончев Андрей Михайлович, 402 группа CountSort 2821 | ||||
---|---|---|---|---|---|
n | 1 | count_array = [[0 for i in range(101)] for j in range(101)] | n | 1 | internal = [[0 for _ in range(101)] for op in range(101)] |
2 | while (s := input()): | 2 | while (number := input()): | ||
3 | num1, num2 = map(int, s.split(', ')) | 3 | first, second = map(int, number.split(',')) | ||
4 | count_array[num1][num2] += 1 | 4 | internal[first][second] += 1 | ||
5 | for i in range(101): | 5 | for i in range(101): | ||
6 | for j in range(101): | 6 | for j in range(101): | ||
t | 7 | for _ in range(count_array[i][j]): | t | 7 | for _ in range(internal[i][j]): |
8 | print(f'{i}, {j}') | 8 | print(f'{i}, {j}') |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|