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 21:54olliecrowolliecrowScore: 102,324Success
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 21:54100,72762,677,24534,248,0003,021,0002,342,912
2Mar 20, 2026 21:58100,88158,268,04434,300,0003,026,0002,416,640
3Mar 20, 2026 21:58101,35463,750,18536,488,0001,013,0002,408,448
4Mar 20, 2026 21:54101,46561,244,14435,513,0002,029,0002,412,544
5Mar 20, 2026 21:53101,68466,714,16135,590,0002,033,0002,342,912
6Mar 20, 2026 21:56101,72767,577,29035,605,0002,034,0002,416,640
7Mar 20, 2026 21:57101,78457,267,44535,625,0002,035,0002,330,624
8Mar 20, 2026 21:57102,22463,118,33136,828,000995,0002,531,328
9Mar 20, 2026 21:54102,24964,083,42435,841,0001,991,0002,416,640
10Mar 20, 2026 21:58102,27870,762,47735,852,0001,991,0002,342,912
11Mar 20, 2026 21:56102,29764,161,81635,858,0001,992,0002,342,912
12Mar 20, 2026 21:56102,30067,270,84034,863,0002,988,0002,334,720
13Mar 20, 2026 21:53102,32462,363,30335,868,0001,992,0002,342,912
14Mar 20, 2026 21:57102,48667,588,03035,925,0001,995,0002,342,912
15Mar 20, 2026 21:56102,54164,037,91735,944,0001,996,0002,412,544
16Mar 20, 2026 21:54102,61967,297,22234,972,0002,997,0002,424,832
17Mar 20, 2026 21:56103,17061,839,45935,160,0003,013,0002,416,640
18Mar 20, 2026 21:53103,19768,314,93437,179,0001,004,0002,330,624
19Mar 20, 2026 21:56104,02464,312,59335,451,0003,038,0002,416,640
20Mar 20, 2026 21:57104,05461,662,13635,461,0003,039,0002,408,448
21Mar 20, 2026 21:57104,36563,937,85938,615,00002,351,104
22Mar 20, 2026 21:54105,83562,105,31936,147,0003,012,0002,355,200
23Mar 20, 2026 21:54107,50074,507,22637,787,0001,988,0002,334,720
24Mar 20, 2026 21:57108,74177,656,67738,223,0002,011,0002,338,816