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 05:06Josu San MartinJosu San MartinScore: 11,202Success
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 05:073,40355,176,22525,911,0001,993,0002,371,584
2Feb 7, 2026 05:033,40853,428,00324,954,0002,994,0002,342,912
3Feb 7, 2026 05:073,40955,055,68925,955,0001,996,0002,277,376
4Feb 7, 2026 05:043,41051,378,01625,961,0001,997,0002,330,624
5Feb 7, 2026 05:063,41556,094,09827,001,0001,000,0002,314,240
6Feb 7, 2026 05:033,42453,458,38226,069,0002,005,0002,306,048
7Feb 7, 2026 05:053,42958,451,99225,105,0003,012,0002,519,040
8Feb 7, 2026 05:073,43158,257,09823,110,0005,024,0002,281,472
9Feb 7, 2026 05:0611,184123,129,84887,725,0003,987,0002,527,232
10Feb 7, 2026 05:0711,189122,289,53689,752,0001,994,0002,318,336
11Feb 7, 2026 05:0411,197123,162,18789,820,0001,996,0002,510,848
12Feb 7, 2026 05:0311,199121,018,00189,837,0001,996,0002,441,216
13Feb 7, 2026 05:0311,201124,129,20588,851,0002,994,0002,445,312
14Feb 7, 2026 05:0511,202117,789,59988,862,0002,995,0002,490,368
15Feb 7, 2026 05:0611,203119,322,02589,867,0001,997,0002,465,792
16Feb 7, 2026 05:0811,208116,453,20290,907,000998,0002,445,312
17Feb 7, 2026 05:0511,210115,564,08188,924,0002,997,0002,514,944
18Feb 7, 2026 05:0711,217119,519,74189,981,0001,999,0002,437,120
19Feb 7, 2026 05:0811,221113,837,63890,015,0002,000,0002,293,760
20Feb 7, 2026 05:0611,224110,571,11690,040,0002,000,0002,506,752
21Feb 7, 2026 05:0811,225120,150,99989,044,0003,001,0002,322,432
22Feb 7, 2026 05:0311,248117,316,46289,225,0003,007,0002,482,176
23Feb 7, 2026 05:0311,251115,533,28191,259,0001,002,0002,469,888
24Feb 7, 2026 05:0711,252117,823,70691,267,0001,002,0002,461,696
25Feb 7, 2026 05:0411,252116,335,49990,262,0002,005,0002,510,848
26Feb 7, 2026 05:0611,406117,416,84192,524,0001,005,0002,383,872
27Feb 7, 2026 05:0611,509124,076,60292,368,0002,008,0002,416,640