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 listJun 19, 2025 21:49Adam FolwarcznyAdam FolwarcznyScore: 105,914Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2025 21:4784,559725,608,383496,558,000196,824,0002,297,856
2Jun 19, 2025 21:4790,617769,244,242555,295,000187,761,0002,347,008
3Jun 19, 2025 21:4794,869807,557,931582,194,000195,729,0002,301,952
4Jun 19, 2025 21:4797,012822,875,226590,627,000204,870,0002,301,952
5Jun 19, 2025 21:4797,430830,022,249605,184,000193,739,0002,338,816
6Jun 19, 2025 21:50100,177846,688,097625,581,000195,869,0002,437,120
7Jun 19, 2025 21:47105,359888,553,895660,194,000203,751,0002,289,664
8Jun 19, 2025 21:49105,914890,768,806663,615,000204,881,0002,428,928
9Jun 19, 2025 21:50107,099905,174,001687,385,000190,829,0002,306,048
10Jun 19, 2025 21:47112,668952,728,587730,116,000193,765,0002,285,568
11Jun 19, 2025 21:50115,785973,712,748749,558,000199,882,0002,301,952
12Jun 19, 2025 21:49115,944977,785,052756,001,000194,742,0002,441,216
13Jun 19, 2025 21:49120,8461,021,267,987789,152,000201,783,0002,306,048
14Jun 19, 2025 21:47121,1851,020,073,776799,970,000193,750,0002,494,464
15Jun 19, 2025 21:47124,3941,043,880,529823,216,000196,812,0002,375,680