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 14, 2026 01:48Yuriy LyfenkoYuriy LyfenkoScore: 3,630Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 01:403,550555,012,39228,104,0001,003,0002,330,624
2Apr 14, 2026 01:403,561554,963,20026,181,0003,020,0002,375,680
3Apr 14, 2026 01:403,564553,286,10327,212,0002,015,0002,428,928
4Apr 14, 2026 01:403,568554,138,16628,249,0001,008,0002,322,432
5Apr 14, 2026 01:403,573561,707,41727,278,0002,020,0002,351,104
6Apr 14, 2026 01:403,580555,613,68928,344,0001,012,0002,338,816
7Apr 14, 2026 01:403,599559,774,87828,495,0001,017,0002,424,832
8Apr 14, 2026 01:493,630561,961,47427,785,0001,984,0002,281,472
9Apr 14, 2026 01:403,640561,157,47126,865,0002,985,0002,289,664
10Apr 14, 2026 01:483,660562,482,81627,012,0003,001,0002,293,760
11Apr 14, 2026 01:483,685561,400,36028,207,0002,014,0002,469,888
12Apr 14, 2026 01:493,685561,515,88027,196,0003,021,0002,506,752
13Apr 14, 2026 01:403,703558,670,09429,350,0001,012,0002,289,664
14Apr 14, 2026 01:493,748558,172,86929,744,000991,0002,420,736
15Apr 14, 2026 01:483,799561,545,05627,132,0004,019,0002,469,888