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 listJan 13, 2026 01:00Josu San MartinJosu San MartinScore: 68,865Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 00:4968,51950,445,36124,338,0001,014,0002,347,008
2Jan 13, 2026 00:4968,58947,395,86724,363,0001,015,0002,338,816
3Jan 13, 2026 00:4968,64150,051,87725,397,00002,277,376
4Jan 13, 2026 00:4968,65147,260,30524,385,0001,016,0002,277,376
5Jan 13, 2026 01:0068,68948,275,02625,415,00002,342,912
6Jan 13, 2026 00:4968,79546,107,03125,454,00002,482,176
7Jan 13, 2026 00:4968,79548,421,64025,454,00002,334,720
8Jan 13, 2026 01:1568,86555,361,16225,480,00002,351,104
9Jan 13, 2026 00:4968,95150,840,26824,492,0001,020,0002,277,376
10Jan 13, 2026 01:1568,97648,187,94525,521,00002,277,376
11Jan 13, 2026 01:0069,02253,233,10125,538,00002,351,104
12Jan 13, 2026 00:4969,03046,674,63725,541,00002,277,376
13Jan 13, 2026 00:4969,13856,552,89625,581,00002,277,376
14Jan 13, 2026 01:1569,14656,460,15724,561,0001,023,0002,277,376
15Jan 13, 2026 01:0069,29755,206,13224,615,0001,025,0002,347,008