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 listMay 1, 2026 16:36Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:26Andrew Epstein19.30CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:290282,050,773271,768,0001,240,0002,121,728expected "100031 ", got "0 "
2Oct 5, 2026 21:290286,364,005275,342,0001,266,0002,121,728expected "3658520729 ", got "0 "
3Oct 5, 2026 21:290443,428,797432,835,0001,007,0002,117,632expected "950113017 ", got "0 "
4May 1, 2026 16:3621,668193,887,263175,685,0001,996,0002,564,096
5May 1, 2026 16:3622,160197,881,774178,721,0002,995,0002,306,048
6May 1, 2026 16:3622,189195,142,117179,954,0001,999,0002,568,192
7May 1, 2026 16:3622,217200,914,594181,185,0001,001,0002,306,048
8May 1, 2026 16:3622,414198,085,736181,802,0001,997,0002,306,048
9May 1, 2026 16:3622,431206,867,804180,937,0002,998,0002,306,048
10May 1, 2026 16:3622,438202,022,143181,995,0001,999,0002,555,904
11May 1, 2026 16:3622,443202,525,921183,038,0001,000,0002,306,048
12May 1, 2026 16:3622,506198,616,912183,550,0001,003,0002,330,624