TopK Sergey Svistunov

Find the sum of the 100 largest values in 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 uint64 sum of the top 100 greatest values, printed as a decimal string.

Back to listMar 20, 2026 20:38olliecrowolliecrowScore: 102,192Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 20:36101,12258,015,06035,393,0002,022,0002,326,528
2Mar 20, 2026 20:38101,13564,516,28634,386,0003,034,0002,420,736
3Mar 20, 2026 20:39101,44164,253,31335,505,0002,028,0002,342,912
4Mar 20, 2026 20:39101,45964,617,95936,526,0001,014,0002,342,912
5Mar 20, 2026 20:38101,48165,115,19835,519,0002,029,0002,342,912
6Mar 20, 2026 20:38101,50565,359,85435,527,0002,030,0002,437,120
7Mar 20, 2026 20:40101,55471,173,83836,560,0001,015,0002,543,616
8Mar 20, 2026 20:36101,62762,931,88036,586,0001,016,0002,342,912
9Mar 20, 2026 20:38101,67070,207,16036,602,0001,016,0002,347,008
10Mar 20, 2026 20:40101,69267,931,92935,593,0002,033,0002,424,832
11Mar 20, 2026 20:37101,78163,267,72035,624,0002,035,0002,412,544
12Mar 20, 2026 20:39101,90866,858,66935,668,0002,038,0002,420,736
13Mar 20, 2026 20:39102,19266,251,75634,826,0002,985,0002,330,624
14Mar 20, 2026 20:38102,20367,987,18035,825,0001,990,0002,342,912
15Mar 20, 2026 20:37102,30560,667,06636,857,000996,0002,408,448
16Mar 20, 2026 20:38102,31461,664,68436,833,0001,023,0002,342,912
17Mar 20, 2026 20:36102,63065,227,34835,975,0001,998,0002,342,912
18Mar 20, 2026 20:38102,85769,573,07135,053,0003,004,0002,330,624
19Mar 20, 2026 20:37103,16868,641,60637,168,0001,004,0002,342,912
20Mar 20, 2026 20:38103,19767,825,38636,174,0002,009,0002,416,640
21Mar 20, 2026 20:39104,97366,978,29335,853,0002,987,0002,342,912
22Mar 20, 2026 20:38108,45764,218,44038,072,0002,057,0002,338,816
23Mar 20, 2026 20:39109,48686,012,87937,472,0003,038,0002,416,640
24Mar 20, 2026 20:40110,64988,898,09736,946,0003,994,0002,351,104