Median Sergey Svistunov

Find the median of a stream of binary integers as fast as possible.

Input: 100 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The median value, printed as a decimal string. The median is defined as the element at index N/2 (i.e., a[50000000]) in the sorted array.

Back to listOct 16, 2024 23:05zielajzielajError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2024 23:0500000Error: Exit with code 1: not a dynamic executable 1600000 799981 813988 2127537906 2127537906 3000000 2124537906 2130537906 2124537906 2130537906 50000000 100000000 2124537906 2130537906 49864556 129794stderr
2Oct 16, 2024 23:0500000Error: Exit with code 1: not a dynamic executable 1600000 745093 760617 2268960071 2268960071 3000000 2265960071 2271960071 2265960071 2271960071 50000000 100000000 2265960071 2271960071 49668244 132402stderr