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 listJun 22, 2025 22:12Adam FolwarcznyAdam FolwarcznyScore: 41,666Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2025 22:0741,280372,518,935336,503,0001,997,0002,281,472
2Jun 22, 2025 22:0741,340361,991,933337,993,000999,0002,269,184
3Jun 22, 2025 22:0741,353366,596,723338,098,0001,000,0002,523,136
4Jun 22, 2025 22:0741,433364,190,248337,750,0001,998,0002,514,944
5Jun 22, 2025 22:0741,491363,408,346340,228,00002,265,088
6Jun 22, 2025 22:0741,545363,394,639338,671,0001,998,0002,273,280
7Jun 22, 2025 21:5541,561362,484,898338,804,0001,998,0002,281,472
8Jun 22, 2025 22:1241,573363,403,120338,898,0001,999,0002,514,944
9Jun 22, 2025 21:5541,604363,318,687339,149,0002,000,0002,273,280
10Jun 22, 2025 22:0741,632370,702,665340,381,0001,001,0002,527,232
11Jun 22, 2025 22:0741,666368,230,582339,664,0001,998,0002,281,472
12Jun 22, 2025 21:5541,706365,671,250340,992,000999,0002,269,184
13Jun 22, 2025 21:5541,786371,882,363340,649,0001,997,0002,281,472
14Jun 22, 2025 21:5541,903374,186,465342,606,000998,0002,281,472
15Jun 22, 2025 21:5541,950370,195,997341,992,0001,999,0002,273,280
16Jun 22, 2025 22:0742,077366,808,828344,032,0001,000,0002,273,280
17Jun 22, 2025 21:5542,214367,655,950344,157,0002,000,0002,269,184
18Jun 22, 2025 22:1242,506371,855,040346,552,0001,997,0002,269,184
19Jun 22, 2025 21:5542,568372,013,222347,059,0002,000,0002,523,136
20Jun 22, 2025 22:1242,667376,248,329347,869,0001,999,0002,281,472
21Jun 22, 2025 21:5543,005378,571,745350,641,0001,997,0002,523,136