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 listSep 28, 2023 17:59mmalczakmmalczakScore: 69,443Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2023 17:2268,80344,855,13625,457,00002,424,832
2Sep 28, 2023 17:2268,94346,442,41625,509,00002,535,424
3Sep 28, 2023 17:2269,01647,752,67525,536,00002,428,928
4Sep 28, 2023 17:5969,09546,416,11424,543,0001,022,0002,433,024
5Sep 28, 2023 17:5969,13851,381,67525,581,00002,273,280
6Sep 28, 2023 17:5969,14948,479,42725,585,00002,273,280
7Sep 28, 2023 17:5969,20347,352,86724,581,0001,024,0002,535,424
8Sep 28, 2023 17:2269,22249,936,29025,612,00002,535,424
9Sep 28, 2023 17:2269,23550,510,49525,617,00002,535,424
10Sep 28, 2023 17:2269,40854,185,09724,654,0001,027,0002,428,928
11Sep 28, 2023 17:5969,41449,315,12925,683,00002,437,120
12Sep 28, 2023 17:2269,41950,744,60925,685,00002,428,928
13Sep 28, 2023 17:5969,44356,443,88925,694,00002,273,280
14Sep 28, 2023 17:2269,47858,807,07025,707,00002,273,280
15Sep 28, 2023 17:2269,51156,808,60425,719,00002,428,928
16Sep 28, 2023 17:5969,89548,275,10023,872,0001,989,0002,433,024
17Sep 28, 2023 17:5969,90350,214,31323,875,0001,989,0002,424,832
18Sep 28, 2023 17:5969,94352,230,55524,884,000995,0002,535,424
19Sep 28, 2023 17:2271,93488,676,29426,615,48202,281,472
20Sep 28, 2023 17:5972,09288,691,13326,673,91602,285,568
21Sep 28, 2023 17:5972,48595,095,08626,819,50002,297,856
22Sep 28, 2023 17:2272,56191,320,62226,847,49102,289,664
23Sep 28, 2023 17:2272,65584,965,57826,882,31102,277,376
24Sep 28, 2023 17:5972,95681,903,04326,993,82202,277,376