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 listOct 20, 2024 00:23zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 20, 2024 00:3100000Error: Exit with code 1: not a dynamic executable 67760 30976 34195 2227912352 1250000 617977 629926 2231422269 2231422269 3000000 2228422269 2234422269 99999744 100000000 2228422269 2234422269 50000000 100000000 2228422269 2234422269 50057652 142604 ...stderr
2Oct 20, 2024 00:2900000Error: Exit with code 1: not a dynamic executable 67760 33743 37142 2055544842 1250000 618627 631359 2055566833 2055566833 3000000 2052566833 2058566833 99999744 100000000 2052566833 2058566833 50000000 100000000 2052566833 2058566833 49799802 153909 ...stderr
3Oct 20, 2024 00:2800000Error: Exit with code 1: not a dynamic executable 67760 31547 35058 2180380258 1250000 619951 633146 2175686055 2175686055 3000000 2172686055 2178686055 99999744 100000000 2172686055 2178686055 50000000 100000000 2172686055 2178686055 49815041 160272 ...stderr
4Oct 20, 2024 00:2700000Error: Exit with code 1: not a dynamic executable 67760 32117 35362 2156143124 1250000 619094 631552 2155106039 2155106039 3000000 2152106039 2158106039 99999744 100000000 2152106039 2158106039 50000000 100000000 2152106039 2158106039 50009245 149989 ...stderr
5Oct 20, 2024 00:2300000Error: Exit with code 1: not a dynamic executable 67760 33228 36440 2088081406 1250000 621510 633424 2079798713 2079798713 3000000 2076798713 2082798713 99999744 100000000 2076798713 2082798713 50000000 100000000 2076798713 2082798713 49856631 142265 ...stderr
6Oct 20, 2024 00:312,95746,257,09622,224,0002,020,0002,437,120
7Oct 20, 2024 00:312,97556,456,06923,379,0001,016,0002,392,064
8Oct 20, 2024 00:312,97554,508,04421,347,0003,049,0002,428,928
9Oct 20, 2024 00:312,97547,975,30623,382,0001,016,0002,420,736
10Oct 20, 2024 00:312,97746,491,83521,361,0003,051,0002,449,408
11Oct 20, 2024 00:232,97846,148,72424,416,00002,383,872
12Oct 20, 2024 00:312,97945,919,88121,377,0003,053,0002,502,656
13Oct 20, 2024 00:312,98946,747,12623,486,0001,021,0002,355,200
14Oct 20, 2024 00:312,99050,599,68623,493,0001,021,0002,506,752
15Oct 20, 2024 00:232,99252,652,91424,534,00002,363,392
16Oct 20, 2024 00:313,00249,461,09523,594,0001,025,0002,502,656
17Oct 20, 2024 00:233,00554,173,14222,592,0002,053,0002,310,144