% https://open.kattis.com/problems/moderatepace % 1s % 1.6 Easy % A little shorter than the Prolog version. import util. main :- [_|S] = [L.map(to_int) : L in read_file_lines().map(split)], foreach(L in S.transpose, nth(1+L.len//2,sort(L),V)) printf("%d ",V) end, nl.