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 5, 2026 08:49Rajarshi BasuRajarshi BasuScore: 75,618Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 5, 2026 08:504,77570,580,58835,141,0004,016,0002,514,944
2Jan 5, 2026 08:194,86862,204,98635,926,0003,991,0002,465,792
3Jan 5, 2026 08:194,99166,285,20632,941,0007,985,000417,792
4Jan 5, 2026 08:515,09265,129,74833,609,0008,147,0002,502,656
5Jan 5, 2026 08:245,24366,066,72237,996,0004,999,000421,888
6Jan 5, 2026 08:498,33794,036,78135,713,00032,652,0002,502,656
7Jan 5, 2026 08:198,403226,488,07741,560,00027,342,00025,755,648
8Jan 5, 2026 08:1921,7741,042,481,94139,192,000139,351,000138,158,080
9Jan 5, 2026 08:5172,134615,852,642455,841,000135,655,0002,461,696
10Jan 5, 2026 08:5174,029631,660,961483,236,000123,804,0002,281,472
11Jan 5, 2026 08:2475,618645,586,254491,261,000128,806,000200,704
12Jan 5, 2026 08:5076,396655,809,996500,758,000125,688,0002,281,472
13Jan 5, 2026 08:2377,013656,824,966502,606,000128,899,000303,104
14Jan 5, 2026 08:2377,492661,127,128489,566,000145,870,000184,320
15Jan 5, 2026 08:5077,981663,052,558509,559,000129,887,0002,359,296
16Jan 5, 2026 08:1979,569683,585,642492,598,000159,869,000385,024
17Jan 5, 2026 08:1981,529751,537,805491,334,000177,202,00012,288,000
18Jan 5, 2026 08:2484,494721,664,425540,106,000152,747,000208,896
19Jan 5, 2026 08:4984,831717,013,535558,693,000136,924,0002,510,848
20Jan 5, 2026 08:4993,322905,978,058614,219,000151,021,0002,277,376
21Jan 5, 2026 08:2393,376792,400,694636,908,000128,779,0002,285,568