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 listSep 18, 2023 12:40mmalczakmmalczakScore: 98,841Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2023 12:4297,23561,696,04334,978,000999,0002,289,664
2Sep 18, 2023 12:4197,24360,129,01733,982,0001,998,0002,273,280
3Sep 18, 2023 12:4297,75458,045,56434,160,0002,009,0002,289,664
4Sep 18, 2023 12:4297,80361,572,68235,182,0001,005,0002,285,568
5Sep 18, 2023 12:4197,92262,671,11634,219,0002,012,0002,289,664
6Sep 18, 2023 12:4197,93571,313,16234,223,0002,013,0002,289,664
7Sep 18, 2023 12:4098,00859,132,44034,249,0002,014,0002,277,376
8Sep 18, 2023 12:4098,09563,472,73434,279,0002,016,0002,289,664
9Sep 18, 2023 12:4198,10358,757,62834,282,0002,016,0002,273,280
10Sep 18, 2023 12:4098,21463,240,14935,330,0001,009,0002,289,664
11Sep 18, 2023 12:4298,23560,765,40034,328,0002,019,0002,289,664
12Sep 18, 2023 12:4298,25463,006,50135,345,0001,009,0002,289,664
13Sep 18, 2023 12:4198,65761,933,00736,503,00002,289,664
14Sep 18, 2023 12:4098,65962,858,38435,490,0001,014,0002,277,376
15Sep 18, 2023 12:4098,67659,060,29735,496,0001,014,0002,531,328
16Sep 18, 2023 12:4198,70064,471,38135,505,0001,014,0002,289,664
17Sep 18, 2023 12:4098,74359,943,76035,521,0001,014,0002,277,376
18Sep 18, 2023 12:4098,80360,093,34135,542,0001,015,0002,289,664
19Sep 18, 2023 12:4098,84161,982,77735,556,0001,015,0002,289,664
20Sep 18, 2023 12:4098,99567,402,09335,611,0001,017,0002,289,664
21Sep 18, 2023 12:4298,99764,926,27135,612,0001,017,0002,277,376
22Sep 18, 2023 12:4199,05162,278,40835,631,0001,018,0002,289,664
23Sep 18, 2023 12:4199,12763,627,05736,677,00002,289,664
24Sep 18, 2023 12:4299,51459,783,25135,825,000995,0002,289,664
25Sep 18, 2023 12:4099,542107,088,05836,830,35602,273,280
26Sep 18, 2023 12:4299,55165,570,23535,839,000995,0002,277,376
27Sep 18, 2023 12:4299,60364,087,55035,857,000996,0002,289,664
28Sep 18, 2023 12:4199,78467,572,33934,925,0001,995,0002,281,472
29Sep 18, 2023 12:4299,87498,008,19836,953,39602,260,992
30Sep 18, 2023 12:42100,090107,286,37037,033,17402,252,800
31Sep 18, 2023 12:40100,204100,099,87137,075,56302,269,184
32Sep 18, 2023 12:41100,255119,786,44137,094,45802,265,088
33Sep 18, 2023 12:41100,753106,359,30637,278,65302,277,376
34Sep 18, 2023 12:41101,272104,850,74537,470,61202,265,088
35Sep 18, 2023 12:42101,29498,602,80437,478,96202,273,280
36Sep 18, 2023 12:40114,290114,967,65642,287,13502,269,184