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 2, 2026 05:48Rajarshi BasuRajarshi BasuScore: 89,279Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 05:506,16881,582,81345,517,0005,057,0002,400,256
2Jan 2, 2026 05:506,35381,607,53550,095,0002,003,0002,310,144
3Jan 2, 2026 05:516,47481,872,73350,079,0003,004,0002,347,008
4Jan 2, 2026 05:486,51477,824,26248,377,0005,039,0002,363,392
5Jan 2, 2026 05:506,62284,959,43251,285,0003,016,0002,371,584
6Jan 2, 2026 05:486,80587,431,75350,818,0004,982,0002,449,408
7Jan 2, 2026 05:516,92886,352,15352,821,0003,986,0002,314,240
8Jan 2, 2026 05:506,99887,413,30853,355,0004,026,0002,445,312
9Jan 2, 2026 05:487,10687,086,02154,255,0004,018,0002,461,696
10Jan 2, 2026 05:5181,862703,280,301562,387,000108,881,0002,396,160
11Jan 2, 2026 05:4889,279761,970,000615,232,000116,854,0002,281,472
12Jan 2, 2026 05:5092,878786,687,429645,661,000115,939,0002,420,736
13Jan 2, 2026 05:5094,954809,364,380645,688,000132,935,0002,396,160
14Jan 2, 2026 05:50105,625899,541,261760,235,000105,893,0002,469,888
15Jan 2, 2026 05:48106,950906,221,786753,136,000123,857,0002,338,816
16Jan 2, 2026 05:50109,379921,791,316772,062,000124,848,0002,277,376
17Jan 2, 2026 05:48110,136935,142,868773,244,000129,873,0002,437,120
18Jan 2, 2026 05:48110,285933,085,194784,422,000119,911,0002,293,760
19Jan 2, 2026 05:48111,127939,436,149792,340,000118,901,0002,400,256
20Jan 2, 2026 05:50113,513961,738,392812,956,000117,848,0002,396,160
21Jan 2, 2026 05:48116,315984,829,803829,938,000123,841,0002,281,472