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 04:22Yuriy LyfenkoYuriy LyfenkoScore: 3,231Success
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 04:233,17654,204,39523,036,0003,004,0002,453,504
2Apr 14, 2026 04:233,17949,293,33025,064,0001,002,0002,400,256
3Apr 14, 2026 04:233,18956,612,50824,138,0002,011,0002,437,120
4Apr 14, 2026 04:233,20152,390,04124,227,0002,018,0002,355,200
5Apr 14, 2026 04:233,20250,972,38324,239,0002,019,0002,420,736
6Apr 14, 2026 04:233,20349,060,15324,247,0002,020,0002,347,008
7Apr 14, 2026 04:233,20453,782,47824,249,0002,020,0002,355,200
8Apr 14, 2026 04:233,22051,553,78624,374,0002,031,0002,367,488
9Apr 14, 2026 04:233,22552,551,26723,393,0003,051,0002,375,680
10Apr 14, 2026 04:223,23149,106,88326,495,00002,310,144
11Apr 14, 2026 04:233,24350,634,27625,570,0001,022,0002,433,024
12Apr 14, 2026 04:223,24853,248,19523,563,0003,073,0002,502,656
13Apr 14, 2026 04:223,24957,465,58225,620,0001,024,0002,416,640
14Apr 14, 2026 04:233,27254,260,97225,841,000993,0002,424,832
15Apr 14, 2026 04:233,27353,771,72224,852,0001,988,0002,379,776
16Apr 14, 2026 04:223,27551,225,48522,878,0003,978,0002,494,464
17Apr 14, 2026 04:223,27751,204,32824,880,0001,990,0002,416,640
18Apr 14, 2026 04:223,27853,641,07423,892,0002,986,0002,383,872