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
Mar 3, 2026 23:31olliecrowolliecrowCPPclang++18.1.3Success114,145
Mar 3, 2026 23:28olliecrowolliecrowCPPg++13.3.0Success24,625
Mar 3, 2026 23:24olliecrowolliecrowCPPclang++18.1.3Success17,677+0.03 RP
Mar 3, 2026 23:20olliecrowolliecrowCPPclang++18.1.3Success17,678+160.08 RP
Mar 3, 2026 23:16olliecrowolliecrowCPPg++13.3.0Success90,507
Mar 3, 2026 23:13olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 23:09olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 23:05olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 23:01olliecrowolliecrowCPPg++13.3.0Success24,655+218.09 RP
Mar 3, 2026 22:55olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:49olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:44olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:41olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:38olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:34olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:29olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:24olliecrowolliecrowCPPg++13.3.0Success53,330+187.51 RP
Mar 3, 2026 22:20olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 22:17olliecrowolliecrowCPPg++13.3.0Error
Mar 3, 2026 20:24Josu San MartinJosu San MartinCSHARP9.0.13Success35,235
Mar 3, 2026 20:23Josu San MartinJosu San MartinCSHARP9.0.13Error
Mar 3, 2026 20:18Josu San MartinJosu San MartinCSHARP9.0.13Error
Mar 3, 2026 20:18Josu San MartinJosu San MartinCSHARP9.0.13Success4,217+1'934.71 RP
Mar 3, 2026 20:03Josu San MartinJosu San MartinCSHARP9.0.13Error
Mar 3, 2026 19:49Josu San MartinJosu San MartinCSHARP9.0.13Success158,178
Mar 3, 2026 19:47Josu San MartinJosu San MartinCSHARP9.0.13Error
Mar 3, 2026 05:20Josu San MartinJosu San MartinCSHARP9.0.13Success157,943
Mar 3, 2026 05:03Josu San MartinJosu San MartinCSHARP9.0.13Success157,297
Mar 3, 2026 05:01Josu San MartinJosu San MartinCSHARP9.0.13Success192,291
Mar 3, 2026 04:57Josu San MartinJosu San MartinCSHARP9.0.13Success186,142
Mar 3, 2026 04:55Josu San MartinJosu San MartinCSHARP9.0.13Success419,473
Feb 28, 2026 15:07NoSIMD_C#NoSIMD_C#CPPg++13.3.0Success119,677+0.72 RP
Feb 28, 2026 15:03NoSIMD_C#NoSIMD_C#CPPg++13.3.0Success120,713+11.82 RP
Feb 28, 2026 15:01NoSIMD_C#NoSIMD_C#CPPg++13.3.0Error
Feb 28, 2026 14:43NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success140,811+16.56 RP
Feb 28, 2026 14:27NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 28, 2026 14:16NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success2,030,499
Feb 28, 2026 14:10NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 28, 2026 13:56NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 17:17NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 17:15NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 15:12NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 14:59NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 14:54NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 14:48NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 14:45NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 12:36NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 27, 2026 12:33NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:57NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:52NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:48NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:27NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:16NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:13NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:10NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 17:03NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 16:57NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 16:42NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 26, 2026 16:39NoSIMD_C#NoSIMD_C#CSHARP9.0.4Error
Feb 19, 2026 12:59Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success84,473
Feb 19, 2026 12:57Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success95,441
Feb 19, 2026 12:56Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success95,085
Feb 19, 2026 12:55Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success84,198
Feb 19, 2026 10:58Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Error
Feb 19, 2026 10:56Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Error
Feb 19, 2026 10:53Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Error
Feb 19, 2026 10:24Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success11,553+123.85 RP
Feb 19, 2026 10:24Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success14,736
Feb 19, 2026 10:07Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Error
Feb 19, 2026 10:04Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Error
Feb 19, 2026 09:08Aleksei ShahoikaAleksei ShahoikaCPPg++13.3.0Success13,482+741.73 RP
Feb 8, 2026 05:08Josu San MartinJosu San MartinRUSTrust-1.93.0Success11,387
Feb 7, 2026 23:31Josu San MartinJosu San MartinRUSTrust-1.93.0Success11,530
Feb 7, 2026 23:31Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,350
Feb 7, 2026 22:15Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,514
Feb 7, 2026 21:40Josu San MartinJosu San MartinCPPclang++18.1.3Success13,750
Feb 7, 2026 21:05Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,540
Feb 7, 2026 16:32Josu San MartinJosu San MartinCPPclang++18.1.3Success15,073
Feb 7, 2026 14:08Josu San MartinJosu San MartinRUSTrust-1.92.0Success39,777
Feb 7, 2026 05:58Josu San MartinJosu San MartinCPPclang++18.1.3Success3,761
Feb 7, 2026 05:49Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,208
Feb 7, 2026 05:46Josu San MartinJosu San MartinCPPclang++18.1.3Success3,721
Feb 7, 2026 05:18Josu San MartinJosu San MartinRUSTrust-1.92.0Success41,098
Feb 7, 2026 05:17Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,198
Feb 7, 2026 05:15Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,204
Feb 7, 2026 05:14Josu San MartinJosu San MartinRUSTrust-1.92.0Success39,233
Feb 7, 2026 05:11Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,560
Feb 7, 2026 05:06Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,202
Feb 7, 2026 04:59Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,525
Feb 7, 2026 04:57Josu San MartinJosu San MartinCPPclang++18.1.3Success3,921
Feb 7, 2026 04:53Josu San MartinJosu San MartinCPPg++13.3.0Success3,763
Feb 7, 2026 04:53Josu San MartinJosu San MartinCPPclang++18.1.3Success3,942
Feb 7, 2026 04:47Josu San MartinJosu San MartinCPPclang++18.1.3Success3,960
Feb 7, 2026 04:41Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,464
Feb 7, 2026 04:41Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,470
Feb 7, 2026 04:40Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,421+62.54 RP
Feb 7, 2026 04:33Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,472
Feb 7, 2026 04:29Josu San MartinJosu San MartinCPPclang++18.1.3Success5,245
Feb 7, 2026 04:23Josu San MartinJosu San MartinRUSTrust-1.92.0Success3,498
Feb 7, 2026 04:20Josu San MartinJosu San MartinCPPclang++18.1.3Success4,694