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 14, 2026 03:07Yuriy LyfenkoYuriy LyfenkoScore: 3,431Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 03:073,35055,819,88626,451,0001,017,0002,375,680
2Apr 14, 2026 03:073,37351,359,01325,611,0002,048,0002,387,968
3Apr 14, 2026 03:073,37454,847,83826,645,0001,024,0002,453,504
4Apr 14, 2026 03:073,37853,566,02227,697,00002,473,984
5Apr 14, 2026 03:003,39354,125,17524,840,0002,980,0002,490,368
6Apr 14, 2026 03:073,39453,625,42824,852,0002,982,0002,494,464
7Apr 14, 2026 03:073,39458,407,51825,841,0001,987,0002,514,944
8Apr 14, 2026 03:073,39554,349,05824,859,0002,983,0002,400,256
9Apr 14, 2026 03:073,39553,567,82325,847,0001,988,0002,502,656
10Apr 14, 2026 03:003,39758,173,15424,869,0002,984,0002,326,528
11Apr 14, 2026 03:073,39856,443,09324,878,0002,985,0002,514,944
12Apr 14, 2026 03:073,40355,557,53525,910,0001,993,0002,502,656
13Apr 14, 2026 03:073,40655,202,67523,938,0003,989,0002,453,504
14Apr 14, 2026 03:003,40655,572,33425,937,0001,995,0002,514,944
15Apr 14, 2026 03:073,41150,941,05824,972,0002,996,0002,367,488
16Apr 14, 2026 03:073,41453,322,61925,998,0001,999,0002,473,984
17Apr 14, 2026 03:003,42054,665,53925,042,0003,005,0002,265,088
18Apr 14, 2026 03:073,42358,651,68425,059,0003,007,0002,326,528
19Apr 14, 2026 03:073,43154,677,61126,129,0002,009,0002,506,752
20Apr 14, 2026 03:003,43252,678,52727,136,0001,005,0002,293,760
21Apr 14, 2026 03:003,43355,999,35926,143,0002,011,0002,355,200
22Apr 14, 2026 03:073,43554,923,14824,140,0004,023,0002,465,792
23Apr 14, 2026 03:073,44156,921,26525,196,0003,023,0002,490,368
24Apr 14, 2026 03:073,44154,065,63125,193,0003,023,0002,469,888
25Apr 14, 2026 03:003,44654,951,85127,249,0001,009,0002,416,640
26Apr 14, 2026 03:073,44859,905,04825,241,0003,029,0002,445,312
27Apr 14, 2026 03:073,44954,164,33724,242,0004,040,0002,306,048
28Apr 14, 2026 03:073,45058,913,53528,286,00002,310,144
29Apr 14, 2026 03:003,45254,663,84926,284,0002,021,0002,416,640
30Apr 14, 2026 03:003,45553,781,91027,323,0001,011,0002,342,912
31Apr 14, 2026 03:073,46456,629,46424,349,0004,058,0002,482,176
32Apr 14, 2026 03:073,46755,549,69525,384,0003,046,0002,379,776
33Apr 14, 2026 03:073,47551,373,80826,458,0002,035,0002,490,368
34Apr 14, 2026 03:073,49062,134,05023,505,0005,109,0002,301,952
35Apr 14, 2026 03:073,49156,759,65527,606,0001,022,0002,273,280
36Apr 14, 2026 03:073,49758,718,56126,629,0002,048,0002,310,144