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 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.0Error
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.0Error+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.0Error+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