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 18, 2026 00:51zielajzielajScore: 2,787Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 00:492,75349,500,24721,547,0001,026,0002,424,832
2Apr 18, 2026 00:512,75441,711,87322,581,00002,490,368
3Apr 18, 2026 00:492,76849,267,85620,631,0002,063,0002,494,464
4Apr 18, 2026 00:492,76948,752,59022,703,00002,355,200
5Apr 18, 2026 00:512,76948,913,59522,707,00002,494,464
6Apr 18, 2026 00:492,78645,263,48720,862,0001,986,0002,453,504
7Apr 18, 2026 00:512,78639,656,21520,860,0001,986,0002,355,200
8Apr 18, 2026 00:492,78748,934,09220,867,0001,987,0002,473,984
9Apr 18, 2026 00:512,78749,280,47120,864,0001,987,0002,387,968
10Apr 18, 2026 00:512,78747,026,63421,862,000993,0002,473,984
11Apr 18, 2026 00:512,79745,025,37521,940,000997,0002,322,432
12Apr 18, 2026 00:512,80539,881,85320,999,0001,999,0002,387,968
13Apr 18, 2026 00:495,25069,514,18942,046,0001,001,0002,510,848
14Apr 18, 2026 00:515,25165,996,21141,054,0002,002,0002,535,424
15Apr 18, 2026 00:495,25363,193,59440,073,0003,005,0002,498,560
16Apr 18, 2026 00:495,25865,137,90941,108,0002,005,0002,318,336
17Apr 18, 2026 00:495,29171,601,08741,371,0002,018,0002,482,176
18Apr 18, 2026 00:515,31770,699,93743,603,00002,330,624