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 listFeb 7, 2026 03:53Josu San MartinJosu San MartinScore: 3,501Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:483,44453,034,36325,212,0003,025,0002,469,888
2Feb 7, 2026 03:483,47254,500,83427,451,0001,016,0002,338,816
3Feb 7, 2026 03:483,47552,938,69526,461,0002,035,0002,523,136
4Feb 7, 2026 03:483,47654,586,42728,501,00002,342,912
5Feb 7, 2026 03:533,48556,326,24226,534,0002,041,0002,306,048
6Feb 7, 2026 03:533,49360,358,04127,618,0001,022,0002,486,272
7Feb 7, 2026 03:483,49555,472,00727,638,0001,023,0002,416,640
8Feb 7, 2026 03:483,49758,501,29827,649,0001,024,0002,498,560
9Feb 7, 2026 03:533,50052,018,95127,674,0001,024,0002,322,432
10Feb 7, 2026 03:533,50154,941,08127,683,0001,025,0002,416,640
11Feb 7, 2026 03:483,51656,779,79126,842,0001,988,0002,396,160
12Feb 7, 2026 03:533,51956,457,06026,865,0001,990,0002,424,832
13Feb 7, 2026 03:4811,262119,034,44190,339,0002,007,0002,449,408
14Feb 7, 2026 03:5311,269116,370,08291,403,0001,004,0002,408,448
15Feb 7, 2026 03:5311,299120,736,10291,656,000996,0002,473,984
16Feb 7, 2026 03:4811,304118,007,78290,703,0001,993,0002,486,272
17Feb 7, 2026 03:5311,310122,976,91790,749,0001,994,0002,494,464
18Feb 7, 2026 03:5311,311119,503,21590,758,0001,994,0002,502,656