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
May 5, 2025 16:27Aniruddha DebAniruddha DebCPPg++13.3.0Error
Apr 28, 2025 12:08KeefeKeefeCPPg++13.3.0Error
Apr 28, 2025 11:53KeefeKeefeCPPg++13.3.0Success15,207+66.09 RP
Apr 28, 2025 11:50KeefeKeefeCPPg++13.3.0Success16,906+68.82 RP
Apr 28, 2025 06:53KeefeKeefeCPPg++13.3.0Success19,132+243.01 RP
Apr 28, 2025 06:52KeefeKeefeCPPg++13.3.0Success35,756+2.20 RP
Apr 28, 2025 06:51KeefeKeefeCPPg++13.3.0Success36,040+1.43 RP
Apr 28, 2025 06:51KeefeKeefeCPPg++13.3.0Success36,227+101.68 RP
Apr 24, 2025 14:42Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success41,588
Apr 24, 2025 14:34Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success41,317+2.16 RP
Apr 24, 2025 14:27Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success42,179
Apr 24, 2025 14:22Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success41,689+29.61 RP
Apr 24, 2025 13:48Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success47,559+193.18 RP
Apr 24, 2025 13:41Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success952,025
Apr 24, 2025 10:27Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success585,331+17.08 RP
Apr 24, 2025 02:05KeefeKeefeCPPg++13.3.0Error
Apr 24, 2025 02:02KeefeKeefeCPPg++13.3.0Success61,000
Apr 24, 2025 02:01KeefeKeefeCPPg++13.3.0Success61,055
Apr 24, 2025 02:00KeefeKeefeCPPg++13.3.0Success57,355+6.57 RP
Apr 24, 2025 01:58KeefeKeefeCPPg++13.3.0Success59,601+75.37 RP
Apr 22, 2025 10:59NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Apr 22, 2025 10:54NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Apr 22, 2025 10:48NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success370,622
Apr 22, 2025 10:45NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success374,036
Apr 22, 2025 10:44NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success193,150
Apr 22, 2025 10:42NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success462,938
Apr 22, 2025 10:26NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success747,942
Apr 22, 2025 10:15NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Apr 22, 2025 10:14NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 9, 2025 21:00Chandrasekaran AkashChandrasekaran AkashCPPclang++18.1.3Error
Apr 9, 2025 21:00Chandrasekaran AkashChandrasekaran AkashCPPclang++18.1.3Success975,460+10.25 RP
Apr 9, 2025 17:39NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Apr 9, 2025 08:10NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 9, 2025 07:28NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success183,618+13.52 RP
Apr 9, 2025 07:25NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 9, 2025 06:52NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success209,650+15.38 RP
Apr 9, 2025 06:11NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success280,490
Apr 9, 2025 05:36NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 9, 2025 05:34NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success252,016
Apr 9, 2025 05:33NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 9, 2025 05:22NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 9, 2025 05:19NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success256,231
Apr 8, 2025 14:54NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 8, 2025 14:52NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 8, 2025 14:49NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 8, 2025 07:19NoSIMD_C#NoSIMD_C#CPPg++13.2.0Success949,833
Apr 4, 2025 17:34NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 4, 2025 17:28NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success275,718
Apr 4, 2025 16:54NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success252,348
Apr 4, 2025 16:17NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success277,232
Apr 4, 2025 15:43NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success249,967+6.12 RP
Apr 4, 2025 15:23NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success323,058
Apr 4, 2025 15:03NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 4, 2025 14:58NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 4, 2025 14:39NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success331,287
Apr 4, 2025 14:37NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 4, 2025 14:30NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success351,559
Apr 4, 2025 14:29NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success358,014
Apr 4, 2025 14:27NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success312,410
Apr 4, 2025 14:26NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success324,068
Apr 4, 2025 14:25NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success311,760
Apr 4, 2025 14:20NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success304,940
Apr 4, 2025 14:15NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success270,670+7.78 RP
Apr 4, 2025 13:44NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success302,478+32.72 RP
Apr 4, 2025 13:17NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 4, 2025 13:13NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success598,913+16.74 RP
Apr 4, 2025 13:11NoSIMD_C#NoSIMD_C#CSHARP9.0.3Success1,897,400
Apr 4, 2025 12:59NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Apr 4, 2025 08:36NoSIMD_C#NoSIMD_C#CSHARP9.0.3Error
Mar 25, 2025 19:19Drew GarciaDrew GarciaCPPg++13.2.0Error
Mar 25, 2025 19:19Drew GarciaDrew GarciaCPPclang++18.1.3Error
Mar 25, 2025 19:15Drew GarciaDrew GarciaCPPg++13.2.0Success25,392+5.60 RP
Mar 25, 2025 19:11Drew GarciaDrew GarciaCPPg++13.2.0Success32,254
Mar 25, 2025 19:03Drew GarciaDrew GarciaCPPg++13.2.0Success25,758+66.56 RP
Mar 25, 2025 18:42Drew GarciaDrew GarciaCPPg++13.2.0Success31,088+161.24 RP
Mar 19, 2025 08:54Aryan JainAryan JainCPPclang++18.1.3Success973,438+10.27 RP
Mar 12, 2025 20:20Aniruddha DebAniruddha DebCPPg++13.2.0Success967,985+10.33 RP
Mar 1, 2025 02:31KeefeKeefeCPPg++13.2.0Success143,173
Mar 1, 2025 02:28KeefeKeefeCPPg++13.2.0Error
Mar 1, 2025 02:26KeefeKeefeCPPg++13.2.0Error
Mar 1, 2025 02:24KeefeKeefeCPPg++13.2.0Error
Feb 26, 2025 12:14Oleg KovalovOleg KovalovGOgo1.24.0Error
Feb 26, 2025 12:07Oleg KovalovOleg KovalovGOgo1.24.0Success74,390
Feb 26, 2025 05:54Eugene ZhydzetskiEugene ZhydzetskiGOgo1.24.0Success21,439
Feb 26, 2025 05:50Eugene ZhydzetskiEugene ZhydzetskiGOgo1.24.0Success21,323+4.08 RP
Feb 26, 2025 05:46Eugene ZhydzetskiEugene ZhydzetskiGOgo1.24.0Success21,416+8.82 RP
Feb 10, 2025 07:00NoSIMD_C#NoSIMD_C#CPPg++13.2.0Success961,236
Feb 3, 2025 05:51NoSIMD_C#NoSIMD_C#CPPclang++18.1.3Success974,257
Feb 3, 2025 05:38NoSIMD_C#NoSIMD_C#CPPg++13.2.0Success956,318+0.05 RP
Feb 3, 2025 05:30NoSIMD_C#NoSIMD_C#CPPg++13.2.0Error
Feb 2, 2025 18:50HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highCPPclang++18.1.3Success106,954+0.30 RP
Feb 2, 2025 18:47HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highCPPg++13.2.0Success107,299+93.20 RP
Feb 1, 2025 17:56spacecat8086spacecat8086CPPclang++18.1.3Error
Feb 1, 2025 17:54spacecat8086spacecat8086CPPclang++18.1.3Success104,423
Feb 1, 2025 17:54spacecat8086spacecat8086CPPclang++18.1.3Success104,130
Feb 1, 2025 17:53spacecat8086spacecat8086CPPclang++18.1.3Success138,849
Feb 1, 2025 17:52spacecat8086spacecat8086CPPclang++18.1.3Error
Feb 1, 2025 17:50spacecat8086spacecat8086CPPclang++18.1.3Success106,495
Feb 1, 2025 17:47spacecat8086spacecat8086CPPclang++18.1.3Success99,027+12.45 RP
Feb 1, 2025 17:46spacecat8086spacecat8086CPPclang++18.1.3Error