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 19:06olliecrowolliecrowScore: 102,205Success
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 19:05100,75960,322,97234,259,0003,022,0002,334,720
2Mar 20, 2026 19:06101,13864,122,95334,387,0003,034,0002,342,912
3Mar 20, 2026 19:04101,26261,664,98135,442,0002,025,0002,433,024
4Mar 20, 2026 19:04101,35159,729,41136,487,0001,013,0002,347,008
5Mar 20, 2026 19:06101,49258,588,32936,538,0001,014,0002,330,624
6Mar 20, 2026 19:03101,75468,769,74636,632,0001,017,0002,342,912
7Mar 20, 2026 19:03101,78658,721,54435,626,0002,035,0002,416,640
8Mar 20, 2026 19:06102,20564,504,92335,826,0001,990,0002,347,008
9Mar 20, 2026 19:05102,33266,689,13835,871,0001,992,0002,347,008
10Mar 20, 2026 19:06102,56266,569,91635,951,0001,997,0002,437,120
11Mar 20, 2026 19:06102,89765,603,37736,069,0002,003,0002,342,912
12Mar 20, 2026 19:06102,93865,996,58536,083,0002,004,0002,326,528
13Mar 20, 2026 19:04102,96563,410,67235,090,0003,007,0002,445,312
14Mar 20, 2026 19:03103,06863,085,52936,128,0002,007,0002,437,120
15Mar 20, 2026 19:05103,31163,650,03735,208,0003,017,0002,445,312