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 22:23olliecrowolliecrowScore: 102,281Success
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 22:28100,61465,249,22434,209,0003,018,0002,424,832
2Mar 20, 2026 22:28100,66260,951,23034,226,0003,019,0002,330,624
3Mar 20, 2026 22:27100,70863,838,24535,248,0002,014,0002,412,544
4Mar 20, 2026 22:23100,95460,631,71535,334,0002,019,0002,330,624
5Mar 20, 2026 22:23101,06857,475,00135,374,0002,021,0002,412,544
6Mar 20, 2026 22:29101,10857,707,05734,377,0003,033,0002,342,912
7Mar 20, 2026 22:25101,26262,897,18036,455,0001,012,0002,342,912
8Mar 20, 2026 22:22101,41663,272,35336,510,0001,014,0002,342,912
9Mar 20, 2026 22:25101,88462,608,62236,679,0001,018,0002,342,912
10Mar 20, 2026 22:27101,89261,182,23935,663,0002,037,0002,404,352
11Mar 20, 2026 22:29101,90065,910,52336,684,0001,019,0002,342,912
12Mar 20, 2026 22:28102,01463,693,44435,759,0001,986,0002,342,912
13Mar 20, 2026 22:25102,03067,382,68334,771,0002,980,0002,342,912
14Mar 20, 2026 22:27102,11969,553,28034,801,0002,983,0002,342,912
15Mar 20, 2026 22:22102,26570,686,70735,847,0001,991,0002,535,424
16Mar 20, 2026 22:25102,28166,162,68835,853,0001,991,0002,342,912
17Mar 20, 2026 22:23102,30363,501,75134,864,0002,988,0002,342,912
18Mar 20, 2026 22:23102,31964,047,45736,862,000996,0002,342,912
19Mar 20, 2026 22:28102,33265,193,65234,874,0002,989,0002,416,640
20Mar 20, 2026 22:28102,33262,510,11235,871,0001,992,0002,416,640
21Mar 20, 2026 22:27102,62466,377,51935,973,0001,998,0002,342,912
22Mar 20, 2026 22:22102,68461,439,34835,994,0001,999,0002,420,736
23Mar 20, 2026 22:23102,69263,243,69734,997,0002,999,0002,342,912
24Mar 20, 2026 22:23102,72263,607,05136,007,0002,000,0002,326,528
25Mar 20, 2026 22:25102,77870,094,78936,027,0002,001,0002,539,520
26Mar 20, 2026 22:27102,80564,568,40335,035,0003,003,0002,408,448
27Mar 20, 2026 22:27103,46564,251,73735,260,0003,022,0002,342,912
28Mar 20, 2026 22:28103,49561,994,28136,278,0002,015,0002,408,448
29Mar 20, 2026 22:29103,90061,810,84036,420,0002,023,0002,412,544
30Mar 20, 2026 22:25106,36587,976,44336,248,0003,107,0002,342,912