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.

Back to listJul 8, 2025 19:48Adam FolwarcznyAdam FolwarcznyScore: 107,692Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2025 19:346,46177,979,91948,981,0003,998,0002,273,280
2Jul 8, 2025 19:346,59478,875,09952,072,0002,002,0002,338,816
3Jul 8, 2025 19:466,67083,231,18951,656,0003,038,0002,453,504
4Jul 8, 2025 19:496,96586,476,58852,107,0005,010,0002,437,120
5Jul 8, 2025 19:347,05185,455,05754,827,0002,990,0002,281,472
6Jul 8, 2025 19:467,06878,732,83954,957,0002,997,0002,465,792
7Jul 8, 2025 19:347,07585,331,47354,016,0004,001,0002,482,176
8Jul 8, 2025 19:507,10685,346,93354,249,0004,018,0002,408,448
9Jul 8, 2025 19:487,10781,987,87154,260,0004,019,0002,367,488
10Jul 8, 2025 19:477,31484,298,03457,975,0001,999,0002,486,272
11Jul 8, 2025 19:467,61887,662,58459,447,0003,022,0002,306,048
12Jul 8, 2025 19:4984,338711,770,874584,638,000106,933,0002,392,064
13Jul 8, 2025 19:4989,189755,736,573607,458,000123,889,0002,289,664
14Jul 8, 2025 19:3494,173796,975,968656,333,000115,882,0002,306,048
15Jul 8, 2025 19:4795,982816,171,837668,194,000118,856,0002,293,760
16Jul 8, 2025 19:46104,971886,891,266741,796,000118,967,0002,428,928
17Jul 8, 2025 19:50107,692908,372,366770,192,000112,881,0002,330,624
18Jul 8, 2025 19:47112,922951,343,060810,089,000115,869,0002,396,160
19Jul 8, 2025 19:48118,545996,461,712853,183,000118,886,0002,387,968
20Jul 8, 2025 19:48124,2491,044,681,857893,984,000124,858,0002,281,472
21Jul 8, 2025 19:34126,7991,073,459,575923,891,000115,861,0002,289,664
22Jul 8, 2025 19:48127,6931,075,205,571926,190,000120,894,0002,297,856
23Jul 8, 2025 19:46131,1231,099,248,497952,300,000122,909,0002,293,760
24Jul 8, 2025 19:48132,1391,110,862,239962,594,000120,949,0002,510,848
25Jul 8, 2025 19:48132,3841,113,972,965970,595,000114,952,0002,281,472
26Jul 8, 2025 19:34132,7721,122,092,076974,863,000113,867,0002,457,600
27Jul 8, 2025 19:46133,8151,121,585,382980,356,000116,923,0002,306,048
28Jul 8, 2025 19:46136,7231,143,911,8301,000,221,000120,905,0002,297,856
29Jul 8, 2025 19:34137,3871,160,707,7871,012,721,000113,856,0002,297,856
30Jul 8, 2025 19:46141,5571,188,876,1811,040,893,000119,872,0002,510,848
31Jul 8, 2025 19:34145,3891,222,742,6831,066,274,000125,914,0002,449,408
32Jul 8, 2025 19:50154,2821,288,385,8171,143,195,000121,914,0002,281,472
33Jul 8, 2025 19:46156,4801,310,780,4881,171,214,000111,924,0002,285,568