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:33mmalczakmmalczakScore: 122,670Success
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:3493,68460,666,02533,644,0001,019,0002,527,232
2Sep 18, 2023 12:3494,56998,305,33034,990,46102,260,992
3Sep 18, 2023 12:3494,85693,594,69535,096,64702,256,896
4Sep 18, 2023 12:3495,27060,510,80133,236,0002,014,0002,289,664
5Sep 18, 2023 12:3495,31160,302,25434,258,0001,007,0002,527,232
6Sep 18, 2023 12:3495,338102,596,01435,275,09902,269,184
7Sep 18, 2023 12:3495,85160,554,64334,452,0001,013,0002,289,664
8Sep 18, 2023 12:3495,90858,944,82534,473,0001,013,0002,289,664
9Sep 18, 2023 12:3495,92764,836,41733,465,0002,028,0002,289,664
10Sep 18, 2023 12:3496,61667,681,49334,755,000993,0002,289,664
11Sep 18, 2023 12:3496,83262,890,31433,838,0001,990,0002,289,664
12Sep 18, 2023 12:3496,85462,533,38833,846,0001,990,0002,273,280
13Sep 16, 2023 16:46122,02267,697,10943,142,0002,006,0002,269,184
14Sep 18, 2023 12:33122,36567,878,88043,263,0002,012,0002,289,664
15Sep 16, 2023 16:46122,42468,985,20343,284,0002,013,0002,351,104
16Sep 18, 2023 12:33122,45167,965,11343,294,0002,013,0002,273,280
17Sep 18, 2023 12:33122,49572,391,35643,309,0002,014,0002,281,472
18Sep 16, 2023 16:46122,65975,567,56243,367,0002,017,0002,289,664
19Sep 18, 2023 12:33122,67072,504,07244,380,0001,008,0002,277,376
20Sep 16, 2023 16:46122,80070,125,24943,417,0002,019,0002,289,664
21Sep 16, 2023 16:46122,84971,343,48144,444,0001,010,0002,289,664
22Sep 16, 2023 16:46122,88970,688,26043,449,0002,020,0002,289,664
23Sep 18, 2023 12:33122,89768,352,20244,462,0001,010,0002,289,664
24Sep 16, 2023 16:46122,94672,397,37945,490,00002,269,184
25Sep 16, 2023 16:46123,39778,421,72645,657,00002,527,232
26Sep 18, 2023 12:33123,88471,695,41044,841,000996,0002,269,184
27Sep 18, 2023 12:33123,88971,754,07243,846,0001,993,0002,289,664
28Sep 18, 2023 12:33123,92771,735,56844,857,000996,0002,273,280
29Sep 18, 2023 12:33123,98173,281,66143,879,0001,994,0002,289,664
30Sep 16, 2023 16:46124,06569,207,67443,909,0001,995,0002,531,328
31Sep 18, 2023 12:33127,027107,586,97346,999,98302,260,992
32Sep 18, 2023 12:33128,367126,654,90147,495,67402,273,280
33Sep 16, 2023 16:46128,820104,656,69447,663,39002,269,184
34Sep 16, 2023 16:46130,302110,507,97148,211,59102,260,992
35Sep 16, 2023 16:46130,618110,475,00548,328,69802,265,088
36Sep 18, 2023 12:33131,666113,259,23048,716,51202,273,280