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 listFeb 7, 2026 04:57Josu San MartinJosu San MartinScore: 3,921Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:163,76261,758,97726,869,0003,980,0002,494,464
2Feb 7, 2026 04:163,79057,790,10829,070,0002,004,0002,465,792
3Feb 7, 2026 04:163,81558,665,20828,253,0003,027,0002,396,160
4Feb 7, 2026 04:163,86057,928,47530,631,0001,021,0002,420,736
5Feb 7, 2026 04:163,88459,049,17429,856,0001,990,0002,351,104
6Feb 7, 2026 04:163,88956,312,89129,900,0001,993,0002,420,736
7Feb 7, 2026 04:573,89163,419,90529,910,0001,994,0002,310,144
8Feb 7, 2026 04:163,92157,328,18330,141,0002,009,0002,502,656
9Feb 7, 2026 04:1611,460114,530,66890,970,0002,999,0002,306,048
10Feb 7, 2026 04:5711,552124,521,32592,708,0002,015,0002,424,832
11Feb 7, 2026 04:1611,570121,735,04692,878,0001,997,0002,371,584
12Feb 7, 2026 04:5711,598119,271,74992,098,0003,003,0002,424,832
13Feb 7, 2026 04:5711,684122,480,29392,813,0002,993,0002,367,488
14Feb 7, 2026 04:5711,731126,563,09094,192,0002,004,0002,318,336
15Feb 7, 2026 04:5711,820129,995,66594,929,0001,998,0002,416,640