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 listApr 15, 2026 00:47zielajzielajScore: 2,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2026 00:472,86645,325,75122,483,0001,021,0002,514,944
2Apr 15, 2026 00:472,87346,364,72022,536,0001,024,0002,428,928
3Apr 15, 2026 00:432,87444,471,47423,563,00002,338,816
4Apr 15, 2026 00:432,87455,359,46723,569,00002,469,888
5Apr 15, 2026 00:432,87546,216,99323,573,00002,445,312
6Apr 15, 2026 00:432,87646,201,77423,586,00002,265,088
7Apr 15, 2026 00:432,88046,699,04423,618,00002,334,720
8Apr 15, 2026 00:422,88058,312,11023,618,00002,465,792
9Apr 15, 2026 00:472,88350,128,54422,655,000985,0002,359,296
10Apr 15, 2026 00:422,88448,238,37822,624,0001,028,0002,457,600
11Apr 15, 2026 00:472,88448,842,03923,649,00002,457,600
12Apr 15, 2026 00:422,88854,155,72821,623,0002,059,0002,453,504
13Apr 15, 2026 00:475,46473,090,06941,818,0002,987,0002,301,952
14Apr 15, 2026 00:475,46566,767,40943,816,000995,0002,318,336
15Apr 15, 2026 00:435,47265,735,31743,872,000997,0002,281,472
16Apr 15, 2026 00:435,47570,725,04042,896,0001,995,0002,482,176
17Apr 15, 2026 00:475,48366,958,81443,963,000999,0002,486,272
18Apr 15, 2026 00:475,48470,677,47242,968,0001,998,0002,347,008
19Apr 15, 2026 00:435,48472,425,91543,968,000999,0002,400,256
20Apr 15, 2026 00:435,49074,168,83842,015,0003,001,0002,510,848
21Apr 15, 2026 00:475,50765,245,77444,155,0001,003,0002,281,472