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 listMar 20, 2026 00:08olliecrowolliecrowScore: 19,780Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 00:023,35748,875,23326,507,0001,019,0002,265,088
2Mar 20, 2026 00:083,35950,406,48326,521,0001,020,0002,473,984
3Mar 20, 2026 00:023,36757,310,37527,606,00002,469,888
4Mar 20, 2026 00:083,39554,122,88226,846,000994,0002,510,848
5Mar 20, 2026 00:023,39856,336,47927,860,00002,445,312
6Mar 20, 2026 00:0219,711188,201,332159,633,0001,995,0002,269,184
7Mar 20, 2026 00:0219,767185,121,825160,091,0002,001,0002,277,376
8Mar 20, 2026 00:0219,777186,507,439160,172,0002,002,0002,523,136
9Mar 20, 2026 00:0819,780188,068,364158,188,0004,004,0002,482,176
10Mar 20, 2026 00:0819,780188,777,062160,193,0002,002,0002,502,656
11Mar 20, 2026 00:0819,788189,615,313159,260,0003,004,0002,519,040
12Mar 20, 2026 00:0819,799184,815,972160,344,0002,004,0002,453,504
13Mar 20, 2026 00:0219,820196,215,718161,525,0001,003,0002,449,408
14Mar 20, 2026 00:0819,861186,848,069159,865,0002,997,0002,490,368
15Mar 20, 2026 00:0819,925190,498,818158,375,0005,011,0002,461,696
16Mar 20, 2026 00:0219,965190,594,871161,716,0001,996,0002,338,816
17Mar 20, 2026 00:0219,974189,202,540158,797,0004,993,0002,285,568
18Mar 20, 2026 00:0820,132192,043,352162,083,0003,001,0002,486,272