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 listMay 27, 2024 00:15Joad NacerJoad NacerScore: 65,062Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 00:1564,40050,769,82122,836,000992,0002,527,232
2May 27, 2024 00:1564,43849,461,88622,849,000993,0002,523,136
3May 27, 2024 00:1564,44347,228,45822,851,000993,0002,289,664
4May 27, 2024 00:1564,44649,498,97422,852,000993,0002,289,664
5May 27, 2024 00:1564,73851,252,13521,957,0001,996,0002,289,664
6May 27, 2024 00:1564,88946,675,13923,009,0001,000,0002,289,664
7May 27, 2024 00:1564,99748,104,34822,045,0002,004,0002,289,664
8May 27, 2024 00:1565,06248,339,91122,067,0002,006,0002,269,184
9May 27, 2024 00:1565,08145,381,92222,074,0002,006,0002,523,136
10May 27, 2024 00:1568,41387,546,44225,312,81902,260,992
11May 27, 2024 00:1668,49997,393,10625,344,47002,269,184
12May 27, 2024 00:1568,54399,852,28725,361,05602,265,088
13May 27, 2024 00:1568,66577,813,16025,406,22602,273,280
14May 27, 2024 00:1668,68096,469,97625,411,43002,265,088
15May 27, 2024 00:1669,00095,398,65125,530,11102,265,088