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 listSep 12, 2022 08:52eldon-chungeldon-chungError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2022 08:5200000Error: No answer to stdout. Died or killed?stderr
2Sep 12, 2022 08:538,355153,004,56368,512,85602,273,280
3Sep 12, 2022 08:528,50995,451,89860,801,0008,970,0002,355,200
4Sep 12, 2022 08:529,220102,412,64066,529,0009,072,0002,351,104
5Sep 12, 2022 08:529,243102,921,57062,829,00012,964,0002,342,912
6Sep 12, 2022 08:529,621102,271,39667,911,00010,985,0002,428,928
7Sep 12, 2022 08:529,645103,010,84171,079,0008,008,0002,285,568
8Sep 12, 2022 08:539,652163,929,11079,145,95502,211,840
9Sep 12, 2022 08:529,816107,440,06773,450,0007,043,0002,338,816
10Sep 12, 2022 08:529,831109,086,22372,551,0008,061,0002,277,376
11Sep 12, 2022 08:529,874149,006,04380,967,13702,191,360
12Sep 12, 2022 08:529,895142,523,70481,138,72902,256,896
13Sep 12, 2022 08:5310,245148,062,66184,012,91702,191,360
14Sep 12, 2022 08:5210,276107,083,21475,236,0009,028,0002,314,240
15Sep 12, 2022 08:5210,282112,162,32075,281,0009,033,0002,482,176
16Sep 12, 2022 08:5210,380108,301,79577,104,0008,010,0002,478,080
17Sep 12, 2022 08:5210,669152,731,34287,487,59002,183,168
18Sep 12, 2022 08:5210,750113,314,09878,136,00010,017,0002,400,256
19Sep 12, 2022 08:5210,758167,194,54688,216,82302,224,128
20Sep 12, 2022 08:5210,834117,778,13983,845,0004,990,0002,375,680
21Sep 12, 2022 08:5210,834118,098,38576,863,00011,978,0002,514,944
22Sep 12, 2022 08:5210,897112,387,51278,314,00011,044,0002,293,760
23Sep 12, 2022 08:5210,922115,242,09381,509,0008,050,0002,338,816
24Sep 12, 2022 08:5211,016162,206,98290,334,36102,306,048
25Sep 12, 2022 08:5211,054121,607,77579,562,00011,078,0002,334,720
26Sep 12, 2022 08:5211,202117,300,43883,869,0007,987,0002,416,640
27Sep 12, 2022 08:5311,301151,800,76692,664,59302,244,608
28Sep 12, 2022 08:5211,323119,517,66085,864,0006,988,0002,498,560
29Sep 12, 2022 08:5211,328115,682,39178,907,00013,983,0002,330,624
30Sep 12, 2022 08:5311,331155,173,09892,910,42502,281,472
31Sep 12, 2022 08:5211,392116,074,81882,369,00011,049,0002,338,816
32Sep 12, 2022 08:5211,526155,836,22794,510,56502,277,376
33Sep 12, 2022 08:5311,606159,951,34095,173,01002,224,128
34Sep 12, 2022 08:5211,629117,652,39990,340,0005,018,0002,404,352
35Sep 12, 2022 08:5211,653163,102,79695,557,06902,187,264
36Sep 12, 2022 08:5311,663172,030,01395,633,41402,199,552
37Sep 12, 2022 08:5311,714173,986,55996,054,79402,215,936
38Sep 12, 2022 08:5211,743167,512,98896,290,91002,310,144
39Sep 12, 2022 08:5211,789170,890,92496,668,54802,301,952
40Sep 12, 2022 08:5211,825123,336,15288,972,0007,997,0002,297,856
41Sep 12, 2022 08:5211,926122,435,90286,819,00010,977,0002,334,720
42Sep 12, 2022 08:5211,936167,868,86897,876,79302,281,472
43Sep 12, 2022 08:5211,946126,405,46988,962,0008,996,0002,363,392
44Sep 12, 2022 08:5212,118172,813,64799,370,54302,228,224
45Sep 12, 2022 08:5312,455164,812,802102,128,75602,207,744
46Sep 12, 2022 08:5212,466167,901,690102,221,84202,248,704
47Sep 12, 2022 08:5212,535127,585,10795,737,0007,054,0002,338,816
48Sep 12, 2022 08:5212,559125,063,72693,982,0008,998,0002,424,832
49Sep 12, 2022 08:5212,910132,649,06390,878,00014,980,0002,318,336