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 listApr 18, 2025 03:16Chandrasekaran AkashChandrasekaran AkashScore: 60,754Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 02:1460,43243,583,95321,344,0001,016,0002,531,328
2Apr 18, 2025 02:1460,44346,218,48721,348,0001,016,0002,445,312
3Apr 18, 2025 02:5760,47042,515,66821,357,0001,017,0002,531,328
4Apr 18, 2025 02:1460,53044,980,67521,378,0001,018,0002,531,328
5Apr 18, 2025 02:1460,55744,209,30321,388,0001,018,0002,269,184
6Apr 18, 2025 02:1460,63049,245,14621,414,0001,019,0002,449,408
7Apr 18, 2025 02:1460,66844,943,47321,427,0001,020,0002,527,232
8Apr 18, 2025 02:1460,75442,193,56821,458,0001,021,0002,269,184
9Apr 18, 2025 02:1460,76548,929,08622,483,00002,441,216
10Apr 18, 2025 02:5760,77644,460,86122,487,00002,441,216
11Apr 18, 2025 02:5760,79749,331,65922,495,00002,527,232
12Apr 18, 2025 02:1460,91945,662,12121,516,0001,024,0002,531,328
13Apr 18, 2025 03:1671,30349,958,73425,368,0001,014,0002,531,328
14Apr 18, 2025 03:1671,55746,241,73725,458,0001,018,0002,531,328
15Apr 18, 2025 03:1672,67048,050,93524,897,0001,991,0002,453,504