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 listMar 23, 2026 07:10Dominique GarmierDominique GarmierScore: 10,414Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 07:1010,297103,589,46884,433,00002,449,408
2Mar 23, 2026 07:1010,334114,586,18382,746,0001,993,0002,293,760
3Mar 23, 2026 07:1010,347113,470,06380,857,0003,992,0002,445,312
4Mar 23, 2026 07:1010,349111,421,53881,868,0002,995,0002,457,600
5Mar 23, 2026 07:1010,364110,842,22281,987,0002,999,0002,502,656
6Mar 23, 2026 07:1010,370108,012,38983,033,0002,000,0002,502,656
7Mar 23, 2026 07:1010,387109,699,66083,170,0002,004,0002,506,752
8Mar 23, 2026 07:1010,390112,407,59884,197,0001,002,0002,461,696
9Mar 23, 2026 07:1010,394110,972,03484,232,0001,002,0002,342,912
10Mar 23, 2026 07:1010,414114,207,82683,387,0002,009,0002,486,272
11Mar 23, 2026 07:1010,415108,112,94285,399,00002,367,488
12Mar 23, 2026 07:1010,419115,966,68783,422,0002,010,0002,367,488
13Mar 23, 2026 07:1010,422108,837,53883,448,0002,010,0002,396,160
14Mar 23, 2026 07:1010,437113,674,75784,579,0001,006,0002,314,240
15Mar 23, 2026 07:1010,458117,400,62784,759,000997,0002,457,600
16Mar 23, 2026 07:1010,458114,404,61283,765,0001,994,0002,457,600
17Mar 23, 2026 07:1010,522107,111,04484,277,0002,006,0002,502,656
18Mar 23, 2026 07:1010,706117,661,54484,801,0002,992,0002,506,752