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:23Rajarshi BasuRajarshi BasuScore: 75,525Success
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:233,73351,730,24629,592,0001,020,0002,318,336
2Jan 8, 2026 08:2370,225597,304,959473,872,000101,972,0002,285,568
3Jan 8, 2026 08:2370,665607,764,157460,565,000118,887,0002,285,568
4Jan 8, 2026 08:2371,282612,301,224470,606,000113,904,0002,285,568
5Jan 8, 2026 08:2372,436618,952,609485,983,000107,996,0002,445,312
6Jan 8, 2026 08:2372,969624,994,641484,473,000113,876,0002,433,024
7Jan 8, 2026 08:2373,898636,803,634487,970,000117,992,0002,453,504
8Jan 8, 2026 08:2375,525646,426,146505,433,000113,872,0002,453,504
9Jan 8, 2026 08:2375,573643,246,864501,754,000117,942,0002,490,368
10Jan 8, 2026 08:2379,188674,561,108527,464,000121,876,0002,285,568
11Jan 8, 2026 08:2382,037699,367,216550,760,000121,946,0002,285,568
12Jan 8, 2026 08:2384,770719,221,601584,253,000110,858,0002,367,488
13Jan 8, 2026 08:2385,189723,897,938560,638,000137,911,0002,424,832
14Jan 8, 2026 08:2386,588736,632,515599,175,000110,847,0002,285,568
15Jan 8, 2026 08:2389,071757,019,481612,480,000117,899,0002,420,736