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 17, 2026 06:17Josu San MartinJosu San MartinScore: 68,754Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:5368,08946,953,51024,186,0001,007,0002,277,376
2Jan 17, 2026 05:5368,20354,939,63624,226,0001,009,0002,387,968
3Jan 17, 2026 05:1668,39246,893,72224,293,0001,012,0002,387,968
4Jan 17, 2026 05:1968,40049,676,99324,296,0001,012,0002,277,376
5Jan 17, 2026 05:5368,63247,843,74925,394,00002,277,376
6Jan 17, 2026 05:1968,70348,967,20624,404,0001,016,0002,383,872
7Jan 17, 2026 05:1668,71147,655,23924,407,0001,016,0002,273,280
8Jan 17, 2026 05:1968,75460,431,91825,439,00002,277,376
9Jan 17, 2026 05:1668,82750,519,45425,466,00002,379,776
10Jan 17, 2026 05:1969,87350,463,94524,859,000994,0002,379,776
11Jan 17, 2026 05:1970,35149,372,68724,028,0002,002,0002,387,968
12Jan 17, 2026 06:1770,47847,664,23426,077,00002,277,376
13Jan 17, 2026 06:1770,58651,080,53525,113,0001,004,0002,277,376
14Jan 17, 2026 06:1770,64153,442,01225,132,0001,005,0002,396,160
15Jan 17, 2026 05:1971,06256,113,78825,282,0001,011,0002,392,064