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 20:16olliecrowolliecrowScore: 102,257Success
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 20:16100,58664,086,94334,200,0003,017,0002,342,912
2Mar 20, 2026 20:21101,02262,066,81635,358,0002,020,0002,416,640
3Mar 20, 2026 20:18101,48659,459,97636,536,0001,014,0002,433,024
4Mar 20, 2026 20:18101,56269,299,69235,547,0002,031,0002,342,912
5Mar 20, 2026 20:17101,68665,088,67036,608,0001,016,0002,342,912
6Mar 20, 2026 20:19101,69265,184,20136,610,0001,016,0002,416,640
7Mar 20, 2026 20:18101,77066,421,74535,620,0002,035,0002,412,544
8Mar 20, 2026 20:19101,80364,921,86935,631,0002,036,0002,416,640
9Mar 20, 2026 20:17101,97866,567,45134,754,0002,978,0002,330,624
10Mar 20, 2026 20:17102,22262,889,63635,832,0001,990,0002,424,832
11Mar 20, 2026 20:19102,22466,501,66734,837,0002,986,0002,342,912
12Mar 20, 2026 20:18102,22767,130,12435,834,0001,990,0002,420,736
13Mar 20, 2026 20:19102,25767,518,19036,840,000995,0002,342,912
14Mar 20, 2026 20:17102,28459,219,73435,854,0001,991,0002,408,448
15Mar 20, 2026 20:17102,38965,445,03034,894,0002,990,0002,342,912
16Mar 20, 2026 20:21102,49762,555,25634,930,0002,994,0002,420,736
17Mar 20, 2026 20:19102,56267,500,40035,951,0001,997,0002,420,736
18Mar 20, 2026 20:16102,56864,967,91634,954,0002,996,0002,412,544
19Mar 20, 2026 20:16102,58664,961,38535,960,0001,997,0002,412,544
20Mar 20, 2026 20:17102,82263,636,63136,042,0002,002,0002,424,832
21Mar 20, 2026 20:18102,84162,269,35435,047,0003,004,0002,342,912
22Mar 20, 2026 20:19103,02764,117,77436,114,0002,006,0002,408,448
23Mar 20, 2026 20:18103,25462,141,56335,188,0003,016,0002,330,624
24Mar 20, 2026 20:21107,70077,555,37938,828,0001,021,0002,347,008