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 listDec 26, 2025 03:10Josu San MartinJosu San MartinScore: 16,618Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2025 03:1016,584159,135,136133,987,0001,999,0002,342,912
2Dec 26, 2025 03:1716,590159,496,162134,038,0002,000,0002,277,376
3Dec 26, 2025 03:1716,592164,506,802134,055,0002,000,0002,277,376
4Dec 26, 2025 03:1016,597159,541,027134,091,0002,001,0002,277,376
5Dec 26, 2025 03:1016,606164,396,592135,172,0001,001,0002,334,720
6Dec 26, 2025 03:1016,611157,883,219134,204,0002,003,0002,330,624
7Dec 26, 2025 03:1716,614157,665,636136,231,00002,342,912
8Dec 26, 2025 03:1716,614158,980,200135,232,0001,001,0002,342,912
9Dec 26, 2025 03:1716,617164,172,659134,256,0002,003,0002,277,376
10Dec 26, 2025 03:1016,618160,457,677135,265,0001,001,0002,330,624
11Dec 26, 2025 03:1716,619162,008,334134,283,0001,989,0002,277,376
12Dec 26, 2025 03:1016,622155,828,420134,294,0002,004,0002,277,376
13Dec 26, 2025 03:1016,630165,870,486135,364,0001,002,0002,338,816
14Dec 26, 2025 03:1016,636164,906,505135,415,0001,003,0002,351,104
15Dec 26, 2025 03:1016,638167,481,429136,429,00002,277,376
16Dec 26, 2025 03:1716,649166,567,317135,522,0001,003,0002,338,816
17Dec 26, 2025 03:1716,674165,693,672135,728,000998,0002,342,912
18Dec 26, 2025 03:1716,679165,871,143134,775,0001,996,0002,334,720