Пономаренко Вячеслав Сергеевич, 525 группа CountSort 1765 | Денис Печеный 403 CountSort 2312 | ||||
---|---|---|---|---|---|
n | 1 | in_store = [[0] * 100 for i in range(100)] | n | 1 | a = [[0] * 100 for i in range(100)] |
2 | while (enter := input()): | 2 | while (s := input()): | ||
3 | i, j = eval(enter) | 3 | n, m = eval(s) | ||
4 | in_store[i - 1][j - 1] += 1 | 4 | a[n - 1][m - 1] += 1 | ||
5 | for i in range(100): | 5 | for i in range(100): | ||
6 | for j in range(100): | 6 | for j in range(100): | ||
t | 7 | for n in range(in_store[i][j]): | t | 7 | for k in range(a[i][j]): |
8 | print(i + 1, j + 1, sep=', ') | 8 | print(i + 1, ', ', j + 1, sep='') |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|