Мелия Ереджепова, 318 группа AbsoluteSupreme 4375
Ворошилова Ксения Михайловна 318 AbsoluteSupreme 4887
f1def acmp(a, b):f1def acmp(a, b):
2    return (a[0] == b[0] and a[1] == b[1] and (a[2] == b[2])) - (a[0] <=2    return (a[0] == b[0] and a[1] == b[1] and (a[2] == b[2])) - (a[0] <=
> b[0] and a[1] <= b[1] and (a[2] <= b[2]))> b[0] and a[1] <= b[1] and (a[2] <= b[2]))
3seq = []3seq = []
4while (s := input()):4while (s := input()):
5    seq.append(eval(s))5    seq.append(eval(s))
6res = []6res = []
7while seq:7while seq:
n8    for n, a in enumerate(seq):n8    for f, a in enumerate(seq):
9        if all((not acmp(sorted(a), sorted(b)) for b in seq)):9        if all((not acmp(sorted(a), sorted(b)) for b in seq)):
t10            res.append(seq.pop(n))t10            res.append(seq.pop(f))
11            break11            break
12for el in res:12for el in res:
13    print(*el, sep=', ')13    print(*el, sep=', ')
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op