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 listNov 7, 2024 09:57Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 7, 2024 10:1400000Error: Exit with code 1: Index out of boundsstderr
2Nov 7, 2024 10:1200000Error: Exit with code 1: Index out of boundsstderr
3Nov 7, 2024 10:1200000Error: Exit with code 1: Index out of boundsstderr
4Nov 7, 2024 10:1100000Error: Exit with code 1: Index out of boundsstderr
5Nov 7, 2024 10:1100000Error: Exit with code 1: Index out of boundsstderr
6Nov 7, 2024 10:1000000Error: Exit with code 1: Index out of boundsstderr
7Nov 7, 2024 10:1000000Error: Exit with code 1: Index out of boundsstderr
8Nov 7, 2024 10:0900000Error: Exit with code 1: Index out of boundsstderr
9Nov 7, 2024 10:0900000Error: Exit with code 1: Index out of boundsstderr
10Nov 7, 2024 10:0500000Error: Exit with code 1: Index out of boundsstderr
11Nov 7, 2024 10:0400000Error: Exit with code 1: Index out of boundsstderr
12Nov 7, 2024 10:1580,254688,150,683642,082,00016,002,0002,297,856
13Nov 7, 2024 10:1380,317685,830,612643,611,00014,990,0002,396,160
14Nov 7, 2024 10:1380,971693,906,613640,968,00022,998,0002,285,568
15Nov 7, 2024 10:1382,290699,044,559655,787,00018,993,0002,457,600
16Nov 7, 2024 10:1382,535704,848,055662,789,00013,995,0002,437,120
17Nov 7, 2024 10:1382,885703,969,810664,664,00014,992,0002,269,184
18Nov 7, 2024 10:1583,512714,785,995665,803,00018,994,0002,367,488
19Nov 7, 2024 10:0784,075717,741,903673,427,00015,986,0002,523,136
20Nov 7, 2024 10:1384,439719,385,880673,417,00018,983,0002,510,848
21Nov 7, 2024 10:1384,520720,097,303677,063,00016,001,0002,351,104
22Nov 7, 2024 10:1385,009725,777,063680,073,00017,001,0002,400,256
23Nov 7, 2024 10:1386,535740,228,897693,596,00015,990,0002,314,240
24Nov 7, 2024 10:0787,568745,687,307700,059,00018,001,0002,502,656
25Nov 7, 2024 10:0788,984754,576,233712,676,00016,992,0002,445,312
26Nov 7, 2024 10:0789,308760,952,005710,348,00021,979,0002,404,352
27Nov 7, 2024 10:0791,047776,364,430731,593,00014,991,0002,285,568
28Nov 7, 2024 10:0791,170785,367,603726,603,00020,988,0002,465,792
29Nov 7, 2024 10:0792,546788,463,263738,878,00019,996,0002,437,120
30Nov 7, 2024 10:0792,725786,309,635743,360,00016,985,0002,367,488
31Nov 7, 2024 10:0793,008788,459,550742,674,00019,991,0002,514,944
32Nov 7, 2024 10:1595,677809,461,756767,563,00016,990,0002,433,024
33Nov 7, 2024 10:06103,676875,164,622828,168,00021,977,0002,449,408
34Nov 7, 2024 10:06107,073908,539,427855,997,00021,999,0002,285,568
35Nov 7, 2024 10:06107,468912,450,277864,251,00016,985,0002,400,256
36Nov 7, 2024 10:06111,527938,444,319891,534,00022,988,0002,314,240
37Nov 7, 2024 10:06111,528940,958,784897,538,00016,991,0002,506,752
38Nov 7, 2024 10:06114,761964,500,032916,067,00024,974,0002,265,088
39Nov 7, 2024 10:06115,089971,184,098921,735,00021,993,0002,281,472
40Nov 7, 2024 10:06118,1641,006,472,370937,944,00030,998,0002,498,560
41Nov 7, 2024 09:57118,732997,829,574945,612,00027,988,0002,387,968
42Nov 7, 2024 10:06120,4711,013,879,025964,870,00022,996,0002,469,888
43Nov 7, 2024 09:57129,9121,088,137,3861,039,294,00025,982,0002,478,080
44Nov 7, 2024 09:57135,7391,139,951,6481,076,093,00036,968,0002,322,432