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 listDec 25, 2024 12:31Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2024 11:3400000Error: No answer to stdout. Died or killed?stderr
2Dec 25, 2024 12:2800000Error: No answer to stdout. Died or killed?stderr
3Dec 25, 2024 12:2700000Error: No answer to stdout. Died or killed?stderr
4Dec 25, 2024 12:2800000Error: No answer to stdout. Died or killed?stderr
5Dec 25, 2024 11:3300000Error: No answer to stdout. Died or killed?stderr
6Dec 25, 2024 11:3300000Error: No answer to stdout. Died or killed?stderr
7Dec 25, 2024 12:2800000Error: No answer to stdout. Died or killed?stderr
8Dec 25, 2024 12:2900000Error: expected "2159742323 ", got "2149796690 "stderr
9Dec 25, 2024 12:3000000Error: No answer to stdout. Died or killed?stderr
10Dec 25, 2024 11:3400000Error: No answer to stdout. Died or killed?stderr
11Dec 25, 2024 11:3400000Error: expected "2104283558 ", got "2104283562 "stderr
12Dec 25, 2024 11:3400000Error: No answer to stdout. Died or killed?stderr
13Dec 25, 2024 11:3500000Error: No answer to stdout. Died or killed?stderr
14Dec 25, 2024 12:3100000Error: No answer to stdout. Died or killed?stderr
15Dec 25, 2024 12:3100000Error: No answer to stdout. Died or killed?stderr
16Dec 25, 2024 11:3500000Error: No answer to stdout. Died or killed?stderr
17Dec 30, 2024 00:4100000Error: No answer to stdout. Died or killed?stderr
18Dec 25, 2024 12:2700000Error: No answer to stdout. Died or killed?stderr
19Dec 25, 2024 11:363,45951,254,69128,365,00002,527,232
20Dec 25, 2024 12:303,48951,802,59726,566,0002,043,0002,527,232
21Dec 25, 2024 12:303,49454,789,67326,602,0002,046,0002,404,352
22Dec 25, 2024 11:363,50852,549,55826,779,0001,983,0002,502,656
23Dec 25, 2024 11:363,51754,778,03726,854,0001,989,0002,412,544
24Dec 25, 2024 11:363,52550,417,88226,914,0001,993,0002,502,656
25Dec 25, 2024 12:313,53250,137,58925,968,0002,996,0002,527,232
26Dec 25, 2024 11:353,54154,332,07326,030,0003,003,0002,416,640
27Dec 25, 2024 11:353,54348,675,57227,050,0002,003,0002,527,232
28Dec 25, 2024 11:363,56553,044,63427,220,0002,016,0002,527,232
29Dec 25, 2024 11:363,57153,836,35127,263,0002,019,0002,420,736
30Dec 25, 2024 11:353,58258,512,45924,310,0005,064,0002,269,184
31Dec 25, 2024 11:363,60556,695,81728,538,0001,019,0002,412,544
32Dec 25, 2024 11:353,61258,412,73128,596,0001,021,0002,527,232
33Dec 25, 2024 12:313,62254,042,54723,558,0006,145,0002,416,640
34Dec 25, 2024 11:363,64053,480,71428,850,000994,0002,498,560
35Dec 25, 2024 12:313,65352,856,43628,953,000998,0002,412,544
36Dec 25, 2024 11:353,65855,239,51427,999,0001,999,0002,527,232
37Dec 25, 2024 11:363,68655,663,03327,202,0003,022,0002,420,736
38Dec 25, 2024 12:303,69752,019,53427,287,0003,031,0002,416,640
39Dec 25, 2024 11:353,73552,757,28827,561,0003,062,0002,527,232