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 listNov 29, 2024 20:55E SequeiraE SequeiraScore: 104,530Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2024 20:55103,10561,919,20136,142,0002,007,0002,265,088
2Nov 29, 2024 20:55103,41460,692,04836,250,0002,013,0002,273,280
3Nov 29, 2024 20:57103,53869,746,19236,293,0002,016,0002,523,136
4Nov 29, 2024 20:57103,70369,458,93937,361,0001,009,0002,285,568
5Nov 29, 2024 20:55103,78662,625,00337,391,0001,010,0002,285,568
6Nov 29, 2024 20:57103,78963,063,29837,392,0001,010,0002,265,088
7Nov 29, 2024 20:57103,96560,177,90837,455,0001,012,0002,269,184
8Nov 29, 2024 20:55104,30865,564,49237,579,0001,015,0002,285,568
9Nov 29, 2024 20:57104,45770,672,06637,632,0001,017,0002,285,568
10Nov 29, 2024 20:55104,53065,519,62237,659,0001,017,0002,269,184
11Nov 29, 2024 20:55104,93266,081,47736,834,0001,991,0002,265,088
12Nov 29, 2024 20:55105,00371,961,27238,851,00002,285,568
13Nov 29, 2024 20:57105,41963,423,83837,005,0002,000,0002,285,568
14Nov 29, 2024 20:57105,58165,456,99939,065,00002,273,280
15Nov 29, 2024 20:55105,67364,344,10937,094,0002,005,0002,265,088
16Nov 29, 2024 20:57105,78961,862,11737,135,0002,007,0002,285,568
17Nov 29, 2024 20:55105,97366,655,71037,200,0002,010,0002,273,280
18Nov 29, 2024 20:57107,70064,691,74837,857,0001,992,0002,265,088