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 listJan 18, 2026 04:20Josu San MartinJosu San MartinScore: 8,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 04:208,856101,345,71871,612,0001,008,0002,453,504
2Jan 18, 2026 04:548,86298,696,80071,661,0001,009,0002,334,720
3Jan 18, 2026 04:208,87896,882,92371,800,000997,0002,453,504
4Jan 18, 2026 04:548,87896,566,05772,803,00002,338,816
5Jan 18, 2026 04:208,88497,174,78370,855,0001,995,0002,453,504
6Jan 18, 2026 04:208,88999,944,03570,890,0001,996,0002,437,120
7Jan 18, 2026 04:548,89096,722,72270,901,0001,997,0002,338,816
8Jan 18, 2026 04:548,891103,690,09070,910,0001,997,0002,457,600
9Jan 18, 2026 04:548,89497,255,93871,933,000999,0002,347,008
10Jan 18, 2026 04:208,90097,419,50270,981,0001,999,0002,334,720
11Jan 18, 2026 04:208,900101,666,42170,982,0001,999,0002,453,504
12Jan 18, 2026 04:548,90194,224,42370,991,0001,999,0002,424,832
13Jan 18, 2026 04:208,90399,356,38571,002,0002,000,0002,347,008
14Jan 18, 2026 04:548,905100,597,35771,019,0002,000,0002,437,120
15Jan 18, 2026 04:548,909100,345,51671,054,0002,001,0002,441,216
16Jan 18, 2026 04:208,91393,149,62771,088,0002,002,0002,445,312
17Jan 18, 2026 04:548,918102,456,56171,125,0002,003,0002,293,760
18Jan 18, 2026 04:208,924101,567,17270,171,0003,007,0002,301,952