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 00:47zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 12:15Victor Mercklé12.85CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 12:1508,776,6801,076,000020,480No answer to stdout. Died or killed?
2Apr 15, 2026 00:472,86645,325,75122,483,0001,021,0002,514,944
3Apr 15, 2026 00:472,87346,364,72022,536,0001,024,0002,428,928
4Apr 15, 2026 00:432,87444,471,47423,563,00002,338,816
5Apr 15, 2026 00:432,87455,359,46723,569,00002,469,888
6Apr 15, 2026 00:432,87546,216,99323,573,00002,445,312
7Apr 15, 2026 00:432,87646,201,77423,586,00002,265,088
8Apr 15, 2026 00:422,88058,312,11023,618,00002,465,792
9Apr 15, 2026 00:432,88046,699,04423,618,00002,334,720
10Apr 15, 2026 00:472,88350,128,54422,655,000985,0002,359,296
11Apr 15, 2026 00:422,88448,238,37822,624,0001,028,0002,457,600
12Apr 15, 2026 00:472,88448,842,03923,649,00002,457,600
13Apr 15, 2026 00:422,88854,155,72821,623,0002,059,0002,453,504
14Apr 15, 2026 00:475,46473,090,06941,818,0002,987,0002,301,952
15Apr 15, 2026 00:475,46566,767,40943,816,000995,0002,318,336
16Apr 15, 2026 00:435,47265,735,31743,872,000997,0002,281,472
17Apr 15, 2026 00:435,47570,725,04042,896,0001,995,0002,482,176
18Apr 15, 2026 00:475,48366,958,81443,963,000999,0002,486,272
19Apr 15, 2026 00:435,48472,425,91543,968,000999,0002,400,256
20Apr 15, 2026 00:475,48470,677,47242,968,0001,998,0002,347,008
21Apr 15, 2026 00:435,49074,168,83842,015,0003,001,0002,510,848
22Apr 15, 2026 00:475,50765,245,77444,155,0001,003,0002,281,472