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 listFeb 7, 2026 04:59Josu San MartinJosu San MartinScore: 11,525Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:583,72063,179,75627,455,0003,050,0002,408,448
2Feb 7, 2026 04:573,73958,489,58728,616,0002,044,0002,330,624
3Feb 7, 2026 05:003,88657,470,01827,885,0003,983,0002,310,144
4Feb 7, 2026 04:5711,503114,645,64493,322,0001,003,0002,437,120
5Feb 7, 2026 04:5811,505116,666,71491,328,0003,010,0002,338,816
6Feb 7, 2026 04:5911,506122,551,10293,345,0001,003,0002,510,848
7Feb 7, 2026 04:5911,511120,120,96893,384,0001,004,0002,326,528
8Feb 7, 2026 04:5811,517123,928,12089,415,0005,023,0002,473,984
9Feb 7, 2026 04:5911,517119,980,79091,423,0003,013,0002,392,064
10Feb 7, 2026 05:0011,519124,872,85490,436,0004,019,0002,273,280
11Feb 7, 2026 04:5811,519119,546,86493,452,0001,004,0002,494,464
12Feb 7, 2026 04:5811,522123,298,48089,455,0005,025,0002,420,736
13Feb 7, 2026 04:5811,525126,631,84892,491,0002,010,0002,506,752
14Feb 7, 2026 05:0011,527121,170,59292,512,0002,011,0002,502,656
15Feb 7, 2026 04:5911,546126,935,50093,679,000996,0002,379,776
16Feb 7, 2026 04:5911,546123,628,56194,681,00002,514,944
17Feb 7, 2026 04:5911,549122,127,98189,721,0004,984,0002,445,312
18Feb 7, 2026 04:5711,549125,075,68292,710,0001,993,0002,363,392
19Feb 7, 2026 04:5911,551120,053,89189,730,0004,985,0002,375,680
20Feb 7, 2026 04:5811,551125,381,20793,719,000997,0002,383,872
21Feb 7, 2026 04:5811,552129,026,84889,742,0004,985,0002,510,848
22Feb 7, 2026 04:5911,621123,770,25293,285,0002,006,0002,449,408
23Feb 7, 2026 04:5911,804127,230,10694,796,0001,995,0002,502,656
24Feb 7, 2026 04:5811,933121,334,07392,858,0004,992,0002,514,944