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:26olliecrowolliecrowScore: 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 21:27100,85162,920,08735,298,0002,017,0002,342,912
2Mar 20, 2026 21:24101,00358,740,57134,341,0003,030,0002,437,120
3Mar 20, 2026 21:26101,20856,190,78234,411,0003,036,0002,342,912
4Mar 20, 2026 21:28101,24955,850,58736,450,0001,012,0002,342,912
5Mar 20, 2026 21:24101,28166,238,13735,449,0002,025,0002,342,912
6Mar 20, 2026 21:24101,46565,792,03935,513,0002,029,0002,342,912
7Mar 20, 2026 21:26101,54970,218,08635,542,0002,031,0002,424,832
8Mar 20, 2026 21:27101,63564,214,47935,573,0002,032,0002,424,832
9Mar 20, 2026 21:28101,63866,707,32436,590,0001,016,0002,330,624
10Mar 20, 2026 21:20101,72768,014,52735,605,0002,034,0002,416,640
11Mar 20, 2026 21:22101,81666,098,24035,636,0002,036,0002,330,624
12Mar 20, 2026 21:22102,24363,583,67336,835,000995,0002,334,720
13Mar 20, 2026 21:24102,26563,189,62134,851,0002,987,0002,428,928
14Mar 20, 2026 21:27102,27365,213,62034,854,0002,987,0002,428,928
15Mar 20, 2026 21:22102,27864,660,54535,852,0001,991,0002,424,832
16Mar 20, 2026 21:22102,28167,211,39635,853,0001,991,0002,424,832
17Mar 20, 2026 21:27102,31464,097,16236,860,000996,0002,420,736
18Mar 20, 2026 21:27102,31962,974,18534,870,0002,988,0002,342,912
19Mar 20, 2026 21:22102,32262,436,94835,867,0001,992,0002,428,928
20Mar 20, 2026 21:26102,35761,930,99035,879,0001,993,0002,433,024
21Mar 20, 2026 21:26102,41665,841,18734,903,0002,991,0002,334,720
22Mar 20, 2026 21:20102,42265,052,47634,905,0002,991,0002,342,912
23Mar 20, 2026 21:28102,76565,975,45435,022,0003,001,0002,342,912
24Mar 20, 2026 21:26102,85968,161,70636,055,0002,003,0002,424,832
25Mar 20, 2026 21:27102,90061,271,30536,070,0002,003,0002,342,912
26Mar 20, 2026 21:24103,15763,116,63135,155,0003,013,0002,326,528
27Mar 20, 2026 21:24103,95160,275,01036,438,0002,024,0002,342,912
28Mar 20, 2026 21:20106,37379,961,29738,323,0001,035,0002,342,912
29Mar 20, 2026 21:26106,94665,440,20839,570,00002,433,024
30Mar 20, 2026 21:22108,83863,412,83538,257,0002,013,0002,347,008