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 30, 2023 19:07apuxbtapuxbtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 30, 2023 19:0700000Error: Exit with code 255: stage1, total(ms):118 clt = 50125467stderr
2Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):36 clt = 52771211stderr
3Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):35 clt = 51339003stderr
4Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):35 clt = 52632607stderr
5Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):36 clt = 47030069 K = 2969931stderr
6Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):36 clt = 50488553stderr
7Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):36 clt = 50366938stderr
8Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):36 clt = 50307290stderr
9Sep 30, 2023 19:0900000Error: Exit with code 255: stage1, total(ms):35 clt = 50397578stderr
10Sep 30, 2023 19:0800000Error: Exit with code 255: stage1, total(ms):36 clt = 50166283stderr
11Sep 30, 2023 19:1113,778174,387,415112,977,81502,240,512
12Sep 30, 2023 19:1113,862183,219,325113,668,33202,232,320
13Sep 30, 2023 19:1114,202182,773,714116,453,13602,240,512
14Sep 30, 2023 19:0717,723212,396,529145,330,92702,224,128
15Sep 30, 2023 19:0718,033232,839,802147,867,09202,224,128
16Sep 30, 2023 19:0718,232205,197,586149,500,53802,224,128
17Sep 30, 2023 19:0718,235212,961,226149,526,20702,215,936
18Sep 30, 2023 19:0718,298211,604,971150,044,31602,220,032
19Sep 30, 2023 19:0718,674236,506,866153,123,06602,215,936