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 16, 2026 02:27zielajzielajScore: 2,790Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2026 02:282,75944,338,94022,622,00002,510,848
2Apr 16, 2026 02:282,76551,334,74721,641,0001,030,0002,514,944
3Apr 16, 2026 02:282,78548,530,03421,844,000992,0002,342,912
4Apr 16, 2026 01:002,78650,027,01921,852,000993,0002,351,104
5Apr 16, 2026 01:002,78743,597,10222,850,00002,387,968
6Apr 16, 2026 01:002,78746,372,48321,860,000993,0002,342,912
7Apr 16, 2026 01:002,78851,861,35121,867,000993,0002,314,240
8Apr 16, 2026 01:002,78851,446,91722,865,00002,457,600
9Apr 16, 2026 02:282,78846,602,42021,868,000994,0002,441,216
10Apr 16, 2026 01:002,78949,727,27521,877,000994,0002,502,656
11Apr 16, 2026 02:282,79050,632,20321,881,000994,0002,420,736
12Apr 16, 2026 01:005,28067,445,97442,292,0001,006,0002,449,408
13Apr 16, 2026 01:005,29763,770,17342,425,0001,010,0002,510,848
14Apr 16, 2026 01:005,29969,717,68641,428,0002,020,0002,416,640
15Apr 16, 2026 02:275,30066,426,42440,495,0002,963,0002,310,144
16Apr 16, 2026 02:285,30969,695,03042,525,0001,012,0002,465,792
17Apr 16, 2026 02:285,34069,726,49841,794,0001,990,0002,404,352
18Apr 16, 2026 02:275,34073,996,63640,807,0002,985,0002,371,584
19Apr 16, 2026 02:285,34072,177,88141,794,0001,990,0002,482,176
20Apr 16, 2026 02:285,35764,542,13840,933,0002,995,0002,424,832
21Apr 16, 2026 02:275,46373,265,34442,804,0001,990,0002,527,232