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 28, 2026 21:37olliecrowolliecrowCPPg++10.5.0Success3,419
Apr 28, 2026 20:27olliecrowolliecrowCPPclang++18.1.3Success23,875
Apr 28, 2026 19:30olliecrowolliecrowCPPg++10.5.0Success3,797
Apr 28, 2026 08:52Victor MerckléVictor MerckléCPPg++14.2.0Success32,221
Apr 28, 2026 01:03Charles CabergsCharles CabergsCPPg++12.4.0Success9,951
Apr 27, 2026 22:41TudyMTudyMCPPclang++18.1.3Success17,484
Apr 27, 2026 22:36TudyMTudyMCPPclang++18.1.3Success24,707
Apr 27, 2026 22:31TudyMTudyMCPPclang++18.1.3Success24,700
Apr 27, 2026 22:27TudyMTudyMCPPclang++18.1.3Success19,274
Apr 27, 2026 22:18TudyMTudyMCPPclang++18.1.3Success17,467+0.26 RP
Apr 27, 2026 22:12TudyMTudyMCPPclang++18.1.3Success21,122
Apr 27, 2026 22:07TudyMTudyMCPPclang++18.1.3Success17,475+0.82 RP
Apr 27, 2026 22:01TudyMTudyMCPPclang++18.1.3Success17,508
Apr 27, 2026 21:56TudyMTudyMCPPclang++18.1.3Success17,500+1.73 RP
Apr 27, 2026 21:51TudyMTudyMCPPclang++20.1.2Success28,256
Apr 27, 2026 21:47TudyMTudyMCPPclang++20.1.2Success19,362
Apr 27, 2026 21:43TudyMTudyMCPPclang++20.1.2Success27,669
Apr 27, 2026 21:10Victor MerckléVictor MerckléCPPg++14.2.0Success31,640+187.49 RP
Apr 27, 2026 21:01Victor MerckléVictor MerckléCPPg++14.2.0Success77,781+93.30 RP
Apr 27, 2026 20:53Victor MerckléVictor MerckléCPPg++14.2.0Success283,522+35.27 RP
Apr 27, 2026 20:48Victor MerckléVictor MerckléCPPg++14.2.0Error
Apr 27, 2026 13:34Charles CabergsCharles CabergsCPPg++13.3.0Success9,594
Apr 27, 2026 06:01olliecrowolliecrowCPPclang++18.1.3Success27,610
Apr 27, 2026 05:59olliecrowolliecrowCPPg++10.5.0Success3,381
Apr 26, 2026 20:05TudyMTudyMCPPclang++20.1.2Success17,553+176.06 RP
Apr 26, 2026 20:03TudyMTudyMCPPg++14.2.0Success25,503
Apr 26, 2026 18:29TudyMTudyMCPPg++10.5.0Success41,954
Apr 26, 2026 18:28TudyMTudyMCPPg++10.5.0Success25,404+82.16 RP
Apr 26, 2026 18:26TudyMTudyMCPPg++10.5.0Success32,105+152.82 RP
Apr 26, 2026 17:54TudyMTudyMCPPg++10.5.0Success63,027+59.67 RP
Apr 26, 2026 17:07TudyMTudyMCPPg++10.5.0Success101,015+99.00 RP
Apr 26, 2026 15:27olliecrowolliecrowCSHARP9.0.15Error
Apr 26, 2026 15:16olliecrowolliecrowCPPg++10.5.0Success23,782
Apr 26, 2026 04:20olliecrowolliecrowCPPclang++18.1.3Success23,447
Apr 26, 2026 03:40olliecrowolliecrowCSHARP9.0.15Success35,305
Apr 26, 2026 02:25olliecrowolliecrowCSHARP9.0.15Error
Apr 26, 2026 01:19Charles CabergsCharles CabergsCPPg++13.3.0Success9,622
Apr 25, 2026 22:45olliecrowolliecrowCPPclang++18.1.3Success3,524
Apr 25, 2026 22:40olliecrowolliecrowCPPclang++18.1.3Success23,283
Apr 25, 2026 19:46Charles CabergsCharles CabergsCPPg++14.2.0Success4,739
Apr 25, 2026 18:27olliecrowolliecrowCPPclang++18.1.3Success3,632
Apr 25, 2026 18:24olliecrowolliecrowCPPg++10.5.0Success3,486
Apr 25, 2026 14:40olliecrowolliecrowCPPg++10.5.0Success20,736
Apr 25, 2026 13:56olliecrowolliecrowCSHARP9.0.15Error
Apr 25, 2026 12:30olliecrowolliecrowCPPg++10.5.0Success3,472
Apr 25, 2026 11:29olliecrowolliecrowCSHARP9.0.15Success35,318
Apr 25, 2026 08:44limanjun99limanjun99CPPg++14.2.0Success4,540
Apr 25, 2026 08:28limanjun99limanjun99CPPg++14.2.0Success4,031+31.59 RP
Apr 25, 2026 08:18limanjun99limanjun99CPPg++14.2.0Success4,083+19.64 RP
Apr 25, 2026 08:16limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 08:15limanjun99limanjun99CPPg++14.2.0Success4,135
Apr 25, 2026 08:12limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 08:09limanjun99limanjun99CPPg++14.2.0Error
Apr 25, 2026 08:04limanjun99limanjun99CPPg++14.2.0Success4,116+23.38 RP
Apr 25, 2026 08:03limanjun99limanjun99CPPg++14.2.0Error
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