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 4, 2026 23:34olliecrowolliecrowScore: 12,142Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 4, 2026 23:3412,120125,704,06796,376,0003,011,0002,510,848
2Mar 4, 2026 07:0812,124124,813,80397,408,0002,008,0002,424,832
3Mar 4, 2026 23:3412,128119,962,14898,449,0001,004,0002,404,352
4Mar 4, 2026 23:3412,128130,192,87096,433,0003,013,0002,465,792
5Mar 4, 2026 07:0812,137124,686,82598,518,0001,005,0002,412,544
6Mar 4, 2026 07:0812,138123,884,43398,523,0001,005,0002,424,832
7Mar 4, 2026 07:0812,138132,195,16298,525,0001,005,0002,457,600
8Mar 4, 2026 22:3412,138129,071,72597,522,0002,010,0002,461,696
9Mar 4, 2026 07:0812,139133,505,94998,538,0001,005,0002,412,544
10Mar 4, 2026 22:3412,141125,447,15397,548,0002,011,0002,412,544
11Mar 4, 2026 23:3412,142126,099,43598,556,0001,005,0002,416,640
12Mar 4, 2026 23:3412,155125,605,04497,679,0001,993,0002,461,696
13Mar 4, 2026 07:0812,159127,117,06598,708,000997,0002,445,312
14Mar 4, 2026 22:3412,160126,627,19097,715,0001,994,0002,408,448
15Mar 4, 2026 07:0812,160127,607,02295,727,0003,988,0002,428,928
16Mar 4, 2026 23:3412,160131,009,29498,714,000997,0002,404,352
17Mar 4, 2026 23:3412,167125,824,49098,772,000997,0002,449,408
18Mar 4, 2026 23:3412,169132,818,50795,791,0003,991,0002,408,448
19Mar 4, 2026 07:0812,170124,277,79597,801,0001,995,0002,465,792
20Mar 4, 2026 07:0812,174126,861,09997,831,0001,996,0002,392,064
21Mar 4, 2026 23:3412,174126,805,75598,832,000998,0002,412,544