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 listMar 25, 2026 21:41Dominique GarmierDominique GarmierScore: 10,494Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2026 18:5310,382109,202,84283,126,0002,003,0002,375,680
2Mar 25, 2026 21:0610,430113,240,86283,512,0002,012,0002,379,776
3Mar 25, 2026 19:2310,437111,626,64084,576,0001,006,0002,306,048
4Mar 25, 2026 21:4110,453115,694,89682,723,0002,989,0002,301,952
5Mar 25, 2026 20:4710,484105,942,18483,971,0001,999,0002,457,600
6Mar 25, 2026 19:2310,485113,166,98182,977,0002,999,0002,371,584
7Mar 25, 2026 18:5310,488103,949,03482,004,0004,000,0002,469,888
8Mar 25, 2026 18:5310,494110,012,64583,049,0003,001,0002,502,656
9Mar 25, 2026 21:0610,494111,432,25083,050,0003,001,0002,445,312
10Mar 25, 2026 20:4710,501109,139,57783,107,0003,003,0002,289,664
11Mar 25, 2026 20:4710,515107,188,03184,215,0002,005,0002,519,040
12Mar 25, 2026 19:2310,521109,596,25585,269,0001,003,0002,433,024
13Mar 25, 2026 21:0610,551113,534,42783,503,0003,018,0002,363,392
14Mar 25, 2026 21:4110,619107,113,36684,075,0003,002,0002,301,952
15Mar 25, 2026 21:4110,647114,558,51186,304,0001,003,0002,482,176