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 08:44Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:31Andrew Epstein14.38CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:35084,736,00059,646,00016,102,0002,117,632expected "0 ", got " "
2Oct 5, 2026 21:35094,010,29473,846,00011,153,0002,117,632expected "4294967293 ", got " "
3Oct 5, 2026 21:350106,686,93292,631,0005,145,0002,117,632expected "4294967295 ", got " "
4May 10, 2026 08:444,98555,302,88334,495,0006,385,0002,318,336
5May 10, 2026 08:445,02654,270,76734,402,0006,816,0002,383,872
6May 10, 2026 08:445,07257,200,64734,808,0006,784,0002,482,176
7May 10, 2026 08:445,09155,446,83834,706,0007,045,0002,523,136
8May 10, 2026 08:445,10256,916,10035,040,0006,802,0002,355,200
9May 10, 2026 08:445,10655,045,48735,261,0006,609,0002,338,816
10May 10, 2026 08:445,11657,621,78834,994,0006,961,0002,342,912
11May 10, 2026 08:445,40758,246,82236,463,0007,878,0002,363,392
12May 10, 2026 08:445,45659,725,04336,693,0008,047,0002,404,352