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 10, 2026 09:02Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:26Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:300250,027,483233,663,0007,337,0002,117,632expected "4294967294 ", got " "
2Oct 5, 2026 21:300204,342,150193,670,0001,004,0002,117,632expected "3767483514 ", got " "
3Oct 5, 2026 21:300277,483,850259,470,0008,951,0002,117,632expected "56021 ", got " "
4May 10, 2026 09:034,25349,516,02531,749,0003,127,0002,502,656
5May 10, 2026 09:034,25453,262,72031,495,0003,388,0002,531,328
6May 10, 2026 09:034,28951,292,55832,048,0003,127,0002,318,336
7May 10, 2026 09:034,31950,632,63531,044,0004,379,0002,408,448
8May 10, 2026 09:034,35450,870,29731,296,0004,407,0002,392,064
9May 10, 2026 09:034,37250,714,98131,528,0004,324,0002,465,792
10May 10, 2026 09:0324,943219,697,879201,512,0003,022,0002,473,984
11May 10, 2026 09:0324,951221,193,342200,526,0004,074,0002,445,312
12May 10, 2026 09:0325,422224,070,104205,274,0003,189,0002,297,856