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 18, 2026 01:17zielajzielajScore: 2,788Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 01:182,75246,166,50621,543,0001,025,0002,486,272
2Apr 18, 2026 00:552,75445,352,17222,580,00002,408,448
3Apr 18, 2026 00:552,75556,251,85822,595,00002,371,584
4Apr 18, 2026 00:552,76947,145,76222,707,00002,383,872
5Apr 18, 2026 01:172,78141,378,37119,833,0002,974,0002,457,600
6Apr 18, 2026 01:182,78447,266,80421,834,000992,0002,437,120
7Apr 18, 2026 00:552,78551,761,45420,849,0001,985,0002,433,024
8Apr 18, 2026 00:552,78648,326,90821,856,000993,0002,445,312
9Apr 18, 2026 01:152,78745,281,58520,867,0001,987,0002,437,120
10Apr 18, 2026 00:552,78854,271,87920,876,0001,988,0002,437,120
11Apr 18, 2026 01:182,92149,359,69722,953,000997,0002,473,984
12Apr 18, 2026 01:155,24762,019,29641,024,0002,001,0002,400,256
13Apr 18, 2026 00:555,24963,789,40942,040,0001,000,0002,281,472
14Apr 18, 2026 01:175,27965,339,15541,278,0002,013,0002,326,528
15Apr 18, 2026 01:155,29164,078,26940,361,0003,027,0002,514,944
16Apr 18, 2026 00:555,29462,031,95140,384,0003,028,0002,498,560
17Apr 18, 2026 00:555,29571,384,23440,391,0003,029,0002,461,696
18Apr 18, 2026 01:175,52265,386,55943,266,0002,012,0002,478,080