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:58Josu San MartinJosu San MartinScore: 3,761Success
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:473,60157,513,51028,513,0001,018,0002,412,544
2Feb 7, 2026 05:583,61854,026,65728,647,0001,023,0002,293,760
3Feb 7, 2026 05:583,65654,338,29627,984,0001,998,0002,412,544
4Feb 7, 2026 05:583,66058,871,34629,010,0001,000,0002,486,272
5Feb 7, 2026 05:583,66453,603,85227,037,0003,004,0002,449,408
6Feb 7, 2026 05:583,69052,820,73025,212,0005,042,0002,490,368
7Feb 7, 2026 05:473,73558,637,22130,628,00002,498,560
8Feb 7, 2026 05:473,74357,496,72029,671,0001,023,0002,281,472
9Feb 7, 2026 05:583,75654,910,64627,820,0002,980,0002,293,760
10Feb 7, 2026 05:583,76056,853,26828,844,0001,989,0002,404,352
11Feb 7, 2026 05:583,76156,569,03629,846,000994,0002,523,136
12Feb 7, 2026 05:583,78157,190,39327,005,0004,000,0002,437,120
13Feb 7, 2026 05:4711,313115,563,38690,769,0001,994,0002,494,464
14Feb 7, 2026 05:4711,320119,432,08689,827,0002,994,0002,498,560
15Feb 7, 2026 05:5811,370115,672,52393,231,00002,416,640
16Feb 7, 2026 05:5811,371116,015,54793,246,00002,510,848
17Feb 7, 2026 05:4711,377111,712,70692,287,0001,003,0002,490,368
18Feb 7, 2026 05:5811,379116,224,16892,303,0001,003,0002,281,472
19Feb 7, 2026 05:5811,396119,412,37493,445,00002,428,928
20Feb 7, 2026 05:5811,406117,973,58092,533,000994,0002,478,080
21Feb 7, 2026 05:5811,465121,061,46193,013,0001,000,0002,469,888