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 30, 2023 21:12Franek KortaFranek KortaScore: 61,351Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 30, 2023 21:1260,97345,475,99422,560,00002,531,328
2Aug 30, 2023 21:1461,02452,569,46420,527,0002,052,0002,265,088
3Aug 30, 2023 21:1461,02746,371,93919,501,0003,079,0002,441,216
4Aug 30, 2023 21:1261,03241,015,57122,582,00002,441,216
5Aug 30, 2023 21:1461,03843,698,19022,584,00002,527,232
6Aug 30, 2023 21:1261,09248,011,39422,604,00002,441,216
7Aug 30, 2023 21:1461,14348,357,29522,623,00002,441,216
8Aug 30, 2023 21:1461,15450,808,52519,542,0003,085,0002,445,312
9Aug 30, 2023 21:1261,17346,480,50722,634,00002,269,184
10Aug 30, 2023 21:1261,20350,888,14120,587,0002,058,0002,449,408
11Aug 30, 2023 21:1461,20849,724,47021,618,0001,029,0002,527,232
12Aug 30, 2023 21:1461,32749,181,33221,660,0001,031,0002,269,184
13Aug 30, 2023 21:1261,35147,306,68021,669,0001,031,0002,531,328
14Aug 30, 2023 21:1461,35448,784,78922,701,00002,453,504
15Aug 30, 2023 21:1261,40051,508,62522,718,00002,437,120
16Aug 30, 2023 21:1261,57651,518,66120,802,0001,981,0002,437,120
17Aug 30, 2023 21:1261,67051,949,77521,826,000992,0002,441,216
18Aug 30, 2023 21:1461,83249,761,20720,889,0001,989,0002,437,120
19Aug 30, 2023 21:1265,397104,365,65524,196,79602,293,760
20Aug 30, 2023 21:1465,52861,405,55024,245,21802,174,976
21Aug 30, 2023 21:1265,54996,728,21124,253,04602,170,880
22Aug 30, 2023 21:1465,69490,510,47024,306,96102,179,072
23Aug 30, 2023 21:1265,80492,388,55624,347,66302,301,952
24Aug 30, 2023 21:1465,99582,450,96124,418,04902,174,976