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 21:39zielajzielajScore: 2,827Success
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 21:372,80146,449,16821,969,000998,0002,338,816
2Apr 15, 2026 21:352,80344,860,18319,989,0002,998,0002,437,120
3Apr 15, 2026 21:392,80544,104,33122,004,0001,000,0002,469,888
4Apr 15, 2026 21:372,80750,423,79022,015,0001,000,0002,473,984
5Apr 15, 2026 21:352,80942,852,30722,033,0001,001,0002,523,136
6Apr 15, 2026 21:352,81240,362,32822,059,0001,002,0002,293,760
7Apr 15, 2026 21:372,81446,255,11522,075,0001,003,0002,428,928
8Apr 15, 2026 21:352,81846,160,76821,097,0002,009,0002,326,528
9Apr 15, 2026 21:352,81944,300,76522,114,0001,005,0002,494,464
10Apr 15, 2026 21:372,82041,253,55922,116,0001,005,0002,400,256
11Apr 15, 2026 21:372,82743,228,16022,175,0001,007,0002,469,888
12Apr 15, 2026 21:352,83243,537,32622,212,0001,009,0002,338,816
13Apr 15, 2026 21:375,30568,393,76141,479,0002,023,0002,396,160
14Apr 15, 2026 21:395,30867,990,99640,489,0003,036,0002,465,792
15Apr 15, 2026 21:355,32473,939,69542,638,0001,015,0002,338,816
16Apr 15, 2026 21:395,34172,295,89540,813,0002,986,0002,392,064
17Apr 15, 2026 21:355,34269,854,66242,806,000995,0002,428,928
18Apr 15, 2026 21:375,34269,233,40841,812,0001,991,0002,269,184
19Apr 15, 2026 21:375,34570,923,50540,845,0002,988,0002,310,144
20Apr 15, 2026 21:355,34765,886,10642,848,000996,0002,416,640
21Apr 15, 2026 21:375,35369,142,03941,903,0001,995,0002,408,448