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 14:08Josu San MartinJosu San MartinScore: 39,777Success
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:5937,113329,255,904301,320,0003,003,0002,277,376
2Feb 7, 2026 06:0037,548337,178,372303,898,0003,998,0002,322,432
3Feb 7, 2026 12:5738,862345,733,840315,672,0002,996,0002,494,464
4Feb 7, 2026 12:5739,074349,253,319320,404,00002,428,928
5Feb 7, 2026 05:5839,243349,695,378318,794,0002,998,0002,498,560
6Feb 7, 2026 05:5939,330351,166,605319,514,0002,995,0002,490,368
7Feb 7, 2026 05:5939,437352,503,467321,385,0002,002,0002,490,368
8Feb 7, 2026 05:5839,443350,674,296320,440,0002,994,0002,277,376
9Feb 7, 2026 05:5939,679350,466,391322,373,0002,994,0002,510,848
10Feb 7, 2026 06:0039,777356,567,507323,171,0003,001,0002,486,272
11Feb 7, 2026 14:0839,915356,059,077324,300,0003,002,0002,416,640
12Feb 7, 2026 05:5940,123355,392,607328,009,0001,000,0002,371,584
13Feb 7, 2026 14:0840,227355,839,347327,862,0001,999,0002,498,560
14Feb 7, 2026 05:5840,362357,761,808327,971,0002,999,0002,412,544
15Feb 7, 2026 06:0040,372357,919,231325,047,0006,000,0002,433,024
16Feb 7, 2026 12:5740,695361,956,415331,704,0001,998,0002,445,312
17Feb 7, 2026 14:0840,746356,901,601329,116,0005,001,0002,416,640
18Feb 7, 2026 05:5940,805361,259,085330,603,0003,995,0002,465,792