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 8, 2026 08:24Rajarshi BasuRajarshi BasuScore: 73,406Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 8, 2026 08:2369,374595,333,465447,896,000120,972,0002,318,336
2Jan 8, 2026 08:2370,095607,067,449461,822,000112,956,0002,322,432
3Jan 8, 2026 08:2370,879606,817,009451,384,000129,823,0002,285,568
4Jan 8, 2026 08:2371,577614,247,472465,946,000120,986,0002,293,760
5Jan 8, 2026 08:2372,744625,221,790471,605,000124,895,0002,285,568
6Jan 8, 2026 08:2372,814628,212,923471,062,000126,016,0002,318,336
7Jan 8, 2026 08:2373,359630,043,454478,634,000122,906,0002,396,160
8Jan 8, 2026 08:2373,406625,749,404476,946,000124,985,0002,285,568
9Jan 8, 2026 08:2378,526668,541,292518,932,000124,983,0002,322,432
10Jan 8, 2026 08:2379,067674,928,071525,473,000122,876,0002,318,336
11Jan 8, 2026 08:2480,299686,554,185551,542,000106,911,0002,285,568
12Jan 8, 2026 08:2480,534685,463,185548,485,000111,895,0002,301,952
13Jan 8, 2026 08:2383,690715,784,495561,393,000124,865,0002,404,352
14Jan 8, 2026 08:2485,804727,174,990582,663,000120,930,0002,322,432
15Jan 8, 2026 08:2388,381753,421,331617,767,000106,959,0002,285,568