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.

Date AuthorLanguageStatus Score
Apr 25, 2026 08:02olliecrowolliecrowCPPclang++18.1.3Success23,058
Apr 25, 2026 07:57limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 07:53limanjun99limanjun99CPPg++14.2.0Success4,156+22.37 RP
Apr 25, 2026 07:50limanjun99limanjun99CPPg++14.2.0Success4,195+50.07 RP
Apr 25, 2026 07:48limanjun99limanjun99CPPg++14.2.0Success4,285+109.52 RP
Apr 25, 2026 07:39limanjun99limanjun99CPPg++14.2.0Success5,555
Apr 25, 2026 07:31limanjun99limanjun99CPPg++14.2.0Success5,339
Apr 25, 2026 07:26limanjun99limanjun99CPPg++14.2.0Success4,517
Apr 25, 2026 07:05olliecrowolliecrowCSHARP9.0.15Success44,185
Apr 25, 2026 07:03limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 07:01olliecrowolliecrowCSHARP9.0.15Error
Apr 25, 2026 07:00limanjun99limanjun99CPPg++14.2.0Success46,207
Apr 25, 2026 06:46olliecrowolliecrowCPPg++10.5.0Success3,505
Apr 25, 2026 06:44limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 06:42limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 06:38limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 06:35limanjun99limanjun99CPPg++14.2.0Success4,496+342.38 RP
Apr 25, 2026 06:34limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 06:31limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 06:26olliecrowolliecrowCSHARP9.0.15Success3,627+30.82 RP
Apr 25, 2026 06:26limanjun99limanjun99CPPg++14.2.0Success5,314+1'592.85 RP
Apr 25, 2026 06:18olliecrowolliecrowCSHARP9.0.15Success3,668+7.41 RP
Apr 25, 2026 06:16limanjun99limanjun99CPPg++14.2.0Success34,605+45.69 RP
Apr 25, 2026 06:14limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 05:31limanjun99limanjun99CPPg++14.2.0Success45,458
Apr 25, 2026 05:27limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 05:06limanjun99limanjun99CPPg++14.2.0Success43,067
Apr 25, 2026 04:59limanjun99limanjun99CPPg++14.2.0Success42,149
Apr 25, 2026 04:57limanjun99limanjun99CPPg++14.2.0Success42,606
Apr 25, 2026 04:55limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 04:53limanjun99limanjun99CPPg++14.2.0Success41,196
Apr 25, 2026 04:38limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 02:44olliecrowolliecrowCPPclang++18.1.3Error
Apr 25, 2026 00:59olliecrowolliecrowCSHARP9.0.15Error
Apr 25, 2026 00:53olliecrowolliecrowCPPg++10.5.0Success23,756
Apr 24, 2026 23:03olliecrowolliecrowCSHARP9.0.15Success36,952
Apr 24, 2026 22:51olliecrowolliecrowCPPg++10.5.0Success3,339
Apr 24, 2026 20:34olliecrowolliecrowCSHARP9.0.15Success35,264
Apr 24, 2026 20:31olliecrowolliecrowCSHARP9.0.15Error
Apr 24, 2026 20:06olliecrowolliecrowCPPg++10.5.0Success3,319
Apr 24, 2026 18:47olliecrowolliecrowCPPclang++18.1.3Success21,875
Apr 24, 2026 18:20olliecrowolliecrowCPPg++10.5.0Success3,414
Apr 24, 2026 12:55olliecrowolliecrowCSHARP9.0.15Success35,359
Apr 24, 2026 12:24olliecrowolliecrowCSHARP9.0.15Error
Apr 24, 2026 12:17olliecrowolliecrowCSHARP9.0.15Error
Apr 24, 2026 12:04olliecrowolliecrowCPPg++10.5.0Success32,666
Apr 24, 2026 11:59olliecrowolliecrowCPPg++10.5.0Success23,741
Apr 24, 2026 09:39olliecrowolliecrowCPPg++10.5.0Success23,748
Apr 24, 2026 09:32olliecrowolliecrowCPPg++10.5.0Success23,762
Apr 24, 2026 08:09olliecrowolliecrowCSHARP9.0.15Success36,842
Apr 24, 2026 07:31olliecrowolliecrowCSHARP9.0.15Error
Apr 24, 2026 07:20olliecrowolliecrowCPPclang++18.1.3Success23,245
Apr 24, 2026 05:48Charles CabergsCharles CabergsCPPg++13.3.0Success9,739
Apr 24, 2026 05:30olliecrowolliecrowCPPclang++18.1.3Success3,412
Apr 24, 2026 03:28olliecrowolliecrowCPPg++10.5.0Success32,454
Apr 24, 2026 02:22olliecrowolliecrowCPPg++10.5.0Success23,760
Apr 24, 2026 01:32olliecrowolliecrowCSHARP9.0.15Error
Apr 24, 2026 00:21olliecrowolliecrowCSHARP9.0.15Success3,678+347.51 RP
Apr 24, 2026 00:16olliecrowolliecrowCSHARP9.0.15Success37,015
Apr 24, 2026 00:05olliecrowolliecrowCPPg++10.5.0Success17,286
Apr 23, 2026 23:32olliecrowolliecrowCSHARP9.0.14Error
Apr 23, 2026 23:26olliecrowolliecrowCSHARP9.0.15Success12,623
Apr 23, 2026 21:44olliecrowolliecrowCSHARP9.0.15Success33,171
Apr 23, 2026 20:32Charles CabergsCharles CabergsCPPg++13.3.0Success4,729+222.46 RP
Apr 23, 2026 19:29Charles CabergsCharles CabergsCPPg++13.3.0Success5,285+56.27 RP
Apr 23, 2026 09:07Charles CabergsCharles CabergsCPPg++13.3.0Success5,475
Apr 23, 2026 05:53Charles CabergsCharles CabergsCPPg++13.3.0Success5,447+24.28 RP
Apr 23, 2026 04:01Charles CabergsCharles CabergsCPPg++13.3.0Success5,538
Apr 23, 2026 03:24olliecrowolliecrowCPPg++10.5.0Success23,763
Apr 23, 2026 03:19olliecrowolliecrowCPPg++10.5.0Success23,776
Apr 23, 2026 03:14olliecrowolliecrowCPPg++10.5.0Success3,361
Apr 23, 2026 02:13Charles CabergsCharles CabergsCPPg++13.3.0Success5,659
Apr 23, 2026 00:39Charles CabergsCharles CabergsCPPg++13.3.0Success5,520+80.89 RP
Apr 22, 2026 23:56olliecrowolliecrowCSHARP9.0.14Success12,782
Apr 22, 2026 20:50olliecrowolliecrowCPPclang++18.1.3Success23,308
Apr 22, 2026 18:41olliecrowolliecrowCPPclang++18.1.3Success30,128
Apr 22, 2026 17:40olliecrowolliecrowCPPg++10.5.0Success18,927
Apr 22, 2026 17:34olliecrowolliecrowCPPg++10.5.0Success23,764
Apr 22, 2026 16:44Charles CabergsCharles CabergsCPPg++13.3.0Success5,778+624.75 RP
Apr 22, 2026 16:19olliecrowolliecrowCPPg++10.5.0Success23,807
Apr 22, 2026 08:15olliecrowolliecrowRUSTrust-1.95.0Success22,811
Apr 22, 2026 08:11olliecrowolliecrowRUSTrust-1.95.0Success22,802
Apr 22, 2026 07:35olliecrowolliecrowCSHARP9.0.14Success46,250
Apr 22, 2026 07:32olliecrowolliecrowCSHARP9.0.14Success42,300
Apr 22, 2026 02:28olliecrowolliecrowRUSTrust-1.95.0Success3,357+34.21 RP
Apr 22, 2026 02:28olliecrowolliecrowRUSTrust-1.95.0Success3,467
Apr 22, 2026 02:28olliecrowolliecrowRUSTrust-1.95.0Success3,593
Apr 22, 2026 02:24olliecrowolliecrowRUSTrust-1.95.0Success29,139
Apr 22, 2026 02:08olliecrowolliecrowGOgo1.26.2Success14,509
Apr 22, 2026 01:48olliecrowolliecrowCSHARP9.0.14Success12,848
Apr 22, 2026 01:33olliecrowolliecrowCPPg++10.5.0Success32,253
Apr 21, 2026 22:17BenBenCPPclang++20.1.2Success12,534+17.31 RP
Apr 21, 2026 22:08BenBenCPPclang++18.1.3Success12,812+479.13 RP
Apr 21, 2026 18:18Charles CabergsCharles CabergsCPPg++13.3.0Success9,042+98.80 RP
Apr 21, 2026 16:10Charles CabergsCharles CabergsCPPg++13.3.0Success9,997
Apr 21, 2026 09:36olliecrowolliecrowCPPg++10.5.0Success32,070
Apr 21, 2026 07:17olliecrowolliecrowCPPg++10.5.0Success3,406
Apr 21, 2026 07:01olliecrowolliecrowCPPg++10.5.0Success3,660
Apr 21, 2026 00:47Taylor DettlingTaylor DettlingRUSTrust-1.95.0Error
Apr 21, 2026 00:45Taylor DettlingTaylor DettlingRUSTrust-1.95.0Error