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 listApr 25, 2026 06:16limanjun99limanjun99Score: 34,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 06:1732,969288,468,705269,347,0001,001,0002,478,080
2Apr 25, 2026 06:1733,104289,397,768267,463,0003,991,0002,531,328
3Apr 25, 2026 06:1733,498292,967,671270,695,0003,995,0002,478,080
4Apr 25, 2026 06:1734,531302,322,471280,155,0003,001,0002,338,816
5Apr 25, 2026 06:1734,605298,643,517280,771,0002,997,0002,506,752
6Apr 25, 2026 06:1734,958304,979,843282,662,0003,995,0002,519,040
7Apr 25, 2026 06:1735,138302,529,776285,132,0003,001,0002,301,952
8Apr 25, 2026 06:1735,605311,423,833289,970,0001,999,0002,543,616
9Apr 25, 2026 06:1736,066314,942,654291,751,0003,996,0002,342,912