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 listJul 16, 2023 14:56Paul MasurelPaul MasurelScore: 73,143Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 14:5669,16252,358,44024,567,0001,023,0002,347,008
2Jul 16, 2023 14:5669,88453,233,30124,863,000994,0002,281,472
3Jul 16, 2023 14:5669,99254,344,10825,897,00002,289,664
4Jul 16, 2023 14:5670,08950,878,01723,939,0001,994,0002,289,664
5Jul 16, 2023 14:5670,26556,732,98524,999,000999,0002,281,472
6Jul 16, 2023 14:5670,56553,869,37724,101,0002,008,0002,281,472
7Jul 16, 2023 14:5671,49249,665,21425,435,0001,017,0002,281,472
8Jul 16, 2023 14:5673,14383,178,99227,062,93802,199,552
9Jul 16, 2023 14:5773,208112,112,06027,086,87802,203,648
10Jul 16, 2023 14:5673,56078,382,61527,217,32302,310,144
11Jul 16, 2023 14:5773,703100,478,23627,269,99102,203,648
12Jul 16, 2023 14:5677,07649,960,52927,500,0001,018,0002,289,664
13Jul 16, 2023 14:5680,65757,495,71129,843,00002,355,200
14Jul 16, 2023 14:5683,03099,798,43930,721,10302,314,240
15Jul 16, 2023 14:5784,59487,467,36531,299,86202,191,360