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 listFeb 7, 2026 05:18Josu San MartinJosu San MartinScore: 41,098Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 05:1838,252339,844,381312,667,000998,0002,506,752
2Feb 7, 2026 05:1939,628350,997,640322,949,0001,999,0002,514,944
3Feb 7, 2026 05:2339,934353,386,687325,453,0002,002,0002,498,560
4Feb 7, 2026 05:1839,999353,447,344325,996,0001,999,0002,400,256
5Feb 7, 2026 05:2140,027350,779,974326,220,0002,001,0002,502,656
6Feb 7, 2026 05:1940,076354,335,594327,622,000998,0002,510,848
7Feb 7, 2026 05:2040,202356,982,132326,660,0002,996,0002,514,944
8Feb 7, 2026 05:1940,705358,483,753330,779,0002,998,0002,502,656
9Feb 7, 2026 05:2340,749362,556,657331,142,0003,001,0002,379,776
10Feb 7, 2026 05:2340,817362,222,845330,702,0003,996,0002,338,816
11Feb 7, 2026 05:2141,004363,533,683333,232,0003,002,0002,502,656
12Feb 7, 2026 05:1841,096358,355,223335,992,000999,0002,383,872
13Feb 7, 2026 05:1841,098362,530,240335,002,0002,000,0002,338,816
14Feb 7, 2026 05:2041,317367,436,189332,805,0005,996,0002,449,408
15Feb 7, 2026 05:2141,330365,820,349334,906,0003,998,0002,379,776
16Feb 7, 2026 05:1941,570367,643,291338,878,0001,999,0002,408,448
17Feb 7, 2026 05:1941,593365,160,075338,062,0003,000,0002,514,944
18Feb 7, 2026 05:1941,600373,331,888338,121,0003,001,0002,379,776
19Feb 7, 2026 05:2041,687366,336,865338,835,0002,998,0002,383,872
20Feb 7, 2026 05:2041,719374,752,074338,092,0004,001,0002,494,464
21Feb 7, 2026 05:1841,875371,785,121339,368,0004,004,0002,342,912
22Feb 7, 2026 05:2041,923370,452,853337,775,0005,996,0002,400,256
23Feb 7, 2026 05:2042,021373,737,197339,577,0004,993,0002,437,120
24Feb 7, 2026 05:1842,391375,171,304345,612,0001,997,0002,461,696