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 listJun 22, 2025 22:15Adam FolwarcznyAdam FolwarcznyScore: 35,329Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2025 22:1535,014318,940,081286,118,0001,000,0002,281,472
2Jun 22, 2025 22:1535,022313,616,261286,180,0001,000,0002,281,472
3Jun 22, 2025 22:1535,065318,526,488286,535,0001,001,0002,400,256
4Jun 22, 2025 22:1535,201319,188,162287,647,000998,0002,412,544
5Jun 22, 2025 22:1535,231309,626,714286,898,0001,999,0002,281,472
6Jun 22, 2025 22:1535,244318,161,920287,000,0002,000,0002,281,472
7Jun 22, 2025 22:1535,296320,243,584288,427,0001,001,0002,498,560
8Jun 22, 2025 22:1535,308315,069,290289,529,00002,408,448
9Jun 22, 2025 22:1535,322317,541,067287,647,0001,997,0002,408,448
10Jun 22, 2025 22:1535,329313,537,991287,701,0001,997,0002,281,472
11Jun 22, 2025 22:1535,357318,252,186286,925,0002,999,0002,281,472
12Jun 22, 2025 22:1535,441317,836,321288,622,0001,997,0002,281,472
13Jun 22, 2025 22:1535,444317,000,014288,643,0001,997,0002,392,064
14Jun 22, 2025 22:1535,446313,945,050288,657,0001,997,0002,281,472
15Jun 22, 2025 22:1535,540315,521,904290,425,0001,001,0002,400,256
16Jun 22, 2025 22:1535,541318,127,328290,438,0001,001,0002,281,472
17Jun 22, 2025 22:1535,590314,763,112289,840,0001,998,0002,281,472
18Jun 22, 2025 22:1535,764324,540,930292,264,0001,000,0002,281,472