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 listApr 18, 2026 01:13zielajzielajScore: 5,303Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 01:112,78750,485,07920,867,0001,987,0002,363,392
2Apr 18, 2026 01:132,78752,597,34721,860,000993,0002,371,584
3Apr 18, 2026 01:112,78849,482,31120,876,0001,988,0002,473,984
4Apr 18, 2026 01:142,78944,729,69821,877,000994,0002,359,296
5Apr 18, 2026 01:122,79047,130,32620,892,0001,989,0002,355,200
6Apr 18, 2026 01:142,79448,079,93821,917,000996,0002,281,472
7Apr 18, 2026 01:132,80049,366,17719,967,0002,995,0002,469,888
8Apr 18, 2026 01:142,80048,329,57221,958,000998,0002,437,120
9Apr 18, 2026 01:115,28365,658,83842,314,0001,007,0002,322,432
10Apr 18, 2026 01:115,30364,635,24040,452,0003,033,0002,437,120
11Apr 18, 2026 01:135,30669,647,77442,496,0001,011,0002,473,984
12Apr 18, 2026 01:135,30968,537,65543,531,00002,351,104
13Apr 18, 2026 01:125,33169,164,94541,731,0001,987,0002,453,504
14Apr 18, 2026 01:135,34067,211,41742,797,000995,0002,465,792
15Apr 18, 2026 01:125,34170,972,76841,810,0001,990,0002,322,432
16Apr 18, 2026 01:135,34271,035,45142,810,000995,0002,445,312
17Apr 18, 2026 01:115,34875,734,98942,860,000996,0002,351,104
18Apr 18, 2026 01:115,36566,913,18842,990,000999,0002,465,792