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 14, 2026 04:42Yuriy LyfenkoYuriy LyfenkoScore: 3,096Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 04:423,05352,711,42322,031,0003,004,0002,289,664
2Apr 14, 2026 04:423,05643,410,03724,056,0001,002,0002,465,792
3Apr 14, 2026 04:423,06852,690,13022,136,0003,018,0002,494,464
4Apr 14, 2026 04:423,07050,165,31522,151,0003,020,0002,514,944
5Apr 14, 2026 04:423,07249,269,42721,162,0004,031,0002,441,216
6Apr 14, 2026 04:423,07847,358,58622,208,0003,028,0002,506,752
7Apr 14, 2026 04:423,08149,543,15523,242,0002,021,0002,482,176
8Apr 14, 2026 04:423,08750,348,98822,275,0003,037,0002,408,448
9Apr 14, 2026 04:423,08946,852,45122,291,0003,039,0002,355,200
10Apr 14, 2026 04:423,09445,437,58222,325,0003,044,0002,502,656
11Apr 14, 2026 04:423,09647,549,21624,370,0001,015,0002,400,256
12Apr 14, 2026 04:423,10151,442,13224,408,0001,017,0002,297,856
13Apr 14, 2026 04:423,10350,646,66323,408,0002,035,0002,408,448
14Apr 14, 2026 04:423,10647,903,57623,436,0002,037,0002,342,912
15Apr 14, 2026 04:423,11150,711,47422,450,0003,061,0002,457,600
16Apr 14, 2026 04:423,11953,876,63124,554,0001,023,0002,510,848
17Apr 14, 2026 04:423,13549,913,03423,651,0002,056,0002,535,424
18Apr 14, 2026 04:423,15252,597,14220,879,0004,971,0002,433,024
19Apr 14, 2026 04:423,15249,369,67923,858,0001,988,0002,326,528
20Apr 14, 2026 04:423,15352,989,59724,858,000994,0002,351,104
21Apr 14, 2026 04:423,18949,771,31824,136,0002,011,0002,392,064