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 listJul 8, 2025 19:31Adam FolwarcznyAdam FolwarcznyScore: 103,876Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2025 19:296,04476,851,77445,515,0004,045,0002,510,848
2Jul 8, 2025 19:297,42086,924,03253,862,0006,982,0002,338,816
3Jul 8, 2025 19:317,43981,938,69857,000,0004,000,0002,514,944
4Jul 8, 2025 19:298,21395,083,20964,330,0003,015,0002,510,848
5Jul 8, 2025 19:298,51793,918,35161,744,0008,097,0002,293,760
6Jul 8, 2025 19:3192,831788,555,689655,325,000105,890,0002,281,472
7Jul 8, 2025 19:31101,682864,071,535716,819,000116,970,0002,273,280
8Jul 8, 2025 19:29103,876889,379,237731,812,000119,969,0002,301,952
9Jul 8, 2025 19:29114,915969,612,426825,388,000116,913,0002,281,472
10Jul 8, 2025 19:31121,1461,025,532,689864,476,000128,921,0002,289,664
11Jul 8, 2025 19:31124,2521,045,561,851901,997,000116,870,0002,514,944
12Jul 8, 2025 19:31126,6121,060,642,784911,312,000126,904,0002,510,848
13Jul 8, 2025 19:29130,1701,091,914,318952,463,000114,935,0002,387,968
14Jul 8, 2025 19:29131,2231,108,689,697957,139,000118,893,0002,506,752
15Jul 8, 2025 19:29133,2601,118,346,460975,868,000116,864,0002,514,944