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 15, 2026 20:40zielajzielajScore: 5,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2026 20:352,80244,326,08521,976,000998,0002,338,816
2Apr 15, 2026 20:402,81347,741,23222,067,0001,003,0002,445,312
3Apr 15, 2026 20:352,81443,392,39922,073,0001,003,0002,334,720
4Apr 15, 2026 20:362,81448,056,40722,073,0001,003,0002,314,240
5Apr 15, 2026 20:355,29966,988,21642,444,0001,010,0002,326,528
6Apr 15, 2026 20:355,30766,766,05043,518,00002,514,944
7Apr 15, 2026 20:355,31575,594,27742,570,0001,013,0002,306,048
8Apr 15, 2026 20:365,34074,808,71342,797,000995,0002,355,200
9Apr 15, 2026 20:355,34169,017,24841,810,0001,990,0002,514,944
10Apr 15, 2026 20:355,34269,655,96342,810,000995,0002,363,392
11Apr 15, 2026 20:405,34264,720,91442,810,000995,0002,408,448
12Apr 15, 2026 20:365,35170,948,00742,880,000997,0002,527,232
13Apr 15, 2026 20:405,39365,336,75943,219,0001,005,0002,523,136
14Apr 15, 2026 20:355,50267,266,11944,113,0001,002,0002,445,312
15Apr 15, 2026 20:359,39499,459,88676,031,0001,000,0002,412,544