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,867Success
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:2570,367606,423,241470,009,000107,002,0002,293,760
2Jan 8, 2026 08:2570,507607,318,186445,350,000132,806,0002,318,336
3Jan 8, 2026 08:2570,859606,590,367453,032,000128,009,0002,285,568
4Jan 8, 2026 08:2470,911610,201,727457,581,000123,886,0002,322,432
5Jan 8, 2026 08:2471,666613,692,028470,726,000116,932,0002,322,432
6Jan 8, 2026 08:2472,427618,955,719481,922,000111,982,0002,293,760
7Jan 8, 2026 08:2573,326630,476,265474,425,000126,846,0002,322,432
8Jan 8, 2026 08:2573,867631,164,032492,767,000112,946,0002,285,568
9Jan 8, 2026 08:2574,110633,005,946495,757,000111,945,0002,297,856
10Jan 8, 2026 08:2479,559679,205,075533,496,000118,887,0002,301,952
11Jan 8, 2026 08:2481,892704,429,540556,598,000114,917,0002,281,472
12Jan 8, 2026 08:2482,963710,294,058574,406,000105,890,0002,322,432
13Jan 8, 2026 08:2483,287710,097,220552,963,000129,991,0002,322,432
14Jan 8, 2026 08:2487,285738,162,063588,786,000126,954,0002,285,568
15Jan 8, 2026 08:2492,404782,148,196626,764,000130,950,0002,396,160