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 15, 2026 21:52zielajzielajScore: 3,040Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2026 21:462,81049,953,82021,037,0002,003,0002,486,272
2Apr 15, 2026 21:452,81546,049,63722,078,0001,003,0002,465,792
3Apr 15, 2026 21:462,81650,667,77022,090,0001,004,0002,363,392
4Apr 15, 2026 21:542,82249,188,25622,136,0001,006,0002,433,024
5Apr 15, 2026 21:462,82645,213,44022,167,0001,007,0002,449,408
6Apr 15, 2026 21:552,82744,732,57922,171,0001,007,0002,514,944
7Apr 15, 2026 21:552,83343,743,44920,204,0003,030,0002,453,504
8Apr 15, 2026 21:543,04058,852,72823,929,000997,0002,330,624
9Apr 15, 2026 21:455,32169,459,53943,636,00002,502,656
10Apr 15, 2026 21:525,34266,257,64141,812,0001,991,0002,506,752
11Apr 15, 2026 21:525,34866,857,06141,860,0001,993,0002,371,584
12Apr 15, 2026 21:555,35265,237,27840,892,0002,992,0002,465,792
13Apr 15, 2026 21:525,35368,180,41741,899,0001,995,0002,379,776
14Apr 15, 2026 21:545,36165,090,77041,964,0001,998,0002,486,272
15Apr 15, 2026 21:455,43970,931,30744,599,00002,433,024