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 listNov 25, 2026 09:34MaximMaximScore: 3,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2026 09:343,63137,397,52327,715,0002,064,0002,113,536
2Nov 25, 2026 09:343,67837,753,01227,151,0003,012,0002,113,536
3Nov 25, 2026 09:343,70838,121,56927,288,0003,120,0002,113,536
4Nov 25, 2026 09:343,71338,115,63527,372,0003,079,0002,113,536
5Nov 25, 2026 09:343,71538,090,24127,302,0003,168,0002,113,536
6Nov 25, 2026 09:343,72038,134,89527,328,0003,177,0002,113,536
7Nov 25, 2026 09:343,72338,209,93627,314,0003,220,0002,113,536
8Nov 25, 2026 09:343,72538,201,31527,365,0003,188,0002,113,536
9Nov 25, 2026 09:343,72537,995,77927,330,0003,217,0002,113,536