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 listJan 17, 2025 06:35Ian MckibbenIan MckibbenScore: 78,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2025 06:3578,50351,692,71527,043,0002,003,0002,269,184
2Jan 17, 2025 06:3578,56253,987,11127,064,0002,004,0002,281,472
3Jan 17, 2025 06:5278,61457,175,71928,084,0001,003,0002,273,280
4Jan 17, 2025 06:5278,65752,621,95528,100,0001,003,0002,269,184
5Jan 17, 2025 06:5278,68453,105,08327,106,0002,007,0002,265,088
6Jan 17, 2025 06:5278,69263,628,86428,112,0001,004,0002,392,064
7Jan 17, 2025 06:3578,74358,968,51727,126,0002,009,0002,289,664
8Jan 17, 2025 06:3578,85754,641,86028,171,0001,006,0002,277,376
9Jan 17, 2025 06:5278,85952,569,06927,166,0002,012,0002,273,280
10Jan 17, 2025 06:3578,87856,204,07227,173,0002,012,0002,289,664
11Jan 17, 2025 06:5278,87853,701,17828,179,0001,006,0002,273,280
12Jan 17, 2025 06:3578,90354,315,32927,181,0002,013,0002,277,376
13Jan 17, 2025 06:5278,93252,567,03728,198,0001,007,0002,289,664
14Jan 17, 2025 06:3578,94651,417,94527,196,0002,014,0002,387,968
15Jan 17, 2025 06:3579,17655,182,31027,275,0002,020,0002,289,664
16Jan 17, 2025 06:5279,22253,219,65327,291,0002,021,0002,289,664
17Jan 17, 2025 06:5279,28950,303,42127,314,0002,023,0002,527,232
18Jan 17, 2025 06:3579,40054,643,97027,352,0002,026,0002,273,280