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 listAug 15, 2021 18:51Igor VolkovIgor VolkovScore: 98,922Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2021 18:5196,90360,804,00033,863,0001,991,0002,289,664
2Aug 15, 2021 18:5197,43058,015,86134,047,0002,002,0002,265,088
3Aug 15, 2021 19:1297,44359,048,94234,051,0002,003,0002,289,664
4Aug 15, 2021 19:1297,57861,172,75534,099,0002,005,0002,523,136
5Aug 15, 2021 19:1297,75958,782,68934,162,0002,009,0002,531,328
6Aug 15, 2021 19:1297,77663,946,14134,168,0002,009,0002,527,232
7Aug 15, 2021 18:5197,94959,833,02434,228,0002,013,0002,289,664
8Aug 15, 2021 18:5198,20561,247,88634,318,0002,018,0002,523,136
9Aug 15, 2021 19:1298,28964,211,38335,357,0001,010,0002,265,088
10Aug 15, 2021 18:5198,31959,154,50835,368,0001,010,0002,273,280
11Aug 15, 2021 19:1298,35962,775,98034,372,0002,021,0002,269,184
12Aug 15, 2021 18:5198,77861,056,16735,533,0001,015,0002,273,280
13Aug 15, 2021 19:1298,803112,492,62136,557,24602,265,088
14Aug 15, 2021 19:1298,92266,954,35335,585,0001,016,0002,265,088
15Aug 15, 2021 19:1298,92465,276,99536,602,00002,273,280
16Aug 15, 2021 18:5199,23861,550,02035,699,0001,019,0002,269,184
17Aug 15, 2021 18:5499,25991,526,66336,725,79702,265,088
18Aug 15, 2021 18:5499,293102,869,08736,738,34502,260,992
19Aug 15, 2021 18:5199,335109,699,15736,753,97702,256,896
20Aug 15, 2021 19:1299,533110,234,92036,827,35102,269,184
21Aug 15, 2021 18:5199,56263,842,28135,843,000995,0002,527,232
22Aug 15, 2021 19:1299,61663,575,12534,866,0001,992,0002,510,848
23Aug 15, 2021 18:5199,76792,877,91536,913,69902,256,896
24Aug 15, 2021 18:51100,23262,163,06035,082,0002,004,0002,281,472
25Aug 15, 2021 18:54100,327101,551,71637,121,14402,273,280
26Aug 15, 2021 18:51100,368126,991,00937,136,29002,269,184
27Aug 15, 2021 19:12100,791100,281,21537,292,63302,252,800