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 listMar 3, 2026 05:03Josu San MartinJosu San MartinScore: 157,297Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2026 05:18142,5403,982,868,673172,645,000996,186,000327,680
2Mar 3, 2026 05:21143,1214,088,451,644180,929,000992,666,000299,008
3Mar 3, 2026 20:15143,3014,009,661,436187,489,000987,576,000274,432
4Mar 3, 2026 05:06143,9614,137,987,005180,928,000999,553,000282,624
5Mar 3, 2026 20:05144,2573,994,455,286165,950,0001,016,954,000274,432
6Mar 3, 2026 05:18145,6304,180,701,504165,236,0001,028,928,000282,624
7Mar 3, 2026 05:23146,9104,266,750,662185,012,0001,019,648,000335,872
8Mar 3, 2026 05:23146,9394,212,452,966174,593,0001,030,305,000327,680
9Mar 3, 2026 05:06147,5684,336,857,169172,568,0001,037,490,000331,776
10Mar 3, 2026 20:15149,8744,697,844,358194,307,0001,034,662,000299,008
11Mar 3, 2026 05:03157,2974,184,479,593290,737,000999,098,000303,104
12Mar 3, 2026 20:05157,7264,251,252,894292,401,0001,000,952,000315,392
13Mar 3, 2026 05:06158,6724,340,575,269269,767,0001,031,340,000282,624
14Mar 3, 2026 05:21158,6764,266,838,464266,120,0001,035,025,000290,816
15Mar 3, 2026 20:15159,3644,787,770,044285,697,0001,021,084,000282,624
16Mar 3, 2026 05:03160,2164,357,246,340308,650,0001,005,118,000327,680
17Mar 3, 2026 05:03160,2244,650,447,876269,479,0001,044,360,000274,432
18Mar 3, 2026 05:18160,7504,419,726,967303,721,0001,014,429,000237,568
19Mar 3, 2026 05:23161,0275,025,600,516291,117,0001,029,308,000282,624
20Mar 3, 2026 05:21161,6604,975,013,513278,339,0001,047,276,000274,432
21Mar 3, 2026 20:05164,4594,766,784,087285,176,0001,063,385,000282,624