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 listApr 18, 2025 23:56emily graceemily graceScore: 70,216Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 23:5669,83853,806,48423,853,0001,987,0002,269,184
2Apr 18, 2025 23:5669,87354,158,12423,865,0001,988,0002,289,664
3Apr 18, 2025 23:5669,94354,940,31624,884,000995,0002,269,184
4Apr 18, 2025 23:5669,95449,198,44723,892,0001,991,0002,289,664
5Apr 18, 2025 23:5570,07851,221,54323,935,0001,994,0002,273,280
6Apr 18, 2025 23:5670,11649,858,31023,948,0001,995,0002,289,664
7Apr 18, 2025 23:5670,16853,651,61823,965,0001,997,0002,269,184
8Apr 18, 2025 23:5570,21649,448,23223,982,0001,998,0002,371,584
9Apr 18, 2025 23:5670,28953,347,34124,007,0002,000,0002,277,376
10Apr 18, 2025 23:5670,42248,328,21524,052,0002,004,0002,289,664
11Apr 18, 2025 23:5670,46247,814,87124,066,0002,005,0002,392,064
12Apr 18, 2025 23:5670,52452,907,13624,087,0002,007,0002,273,280
13Apr 18, 2025 23:5670,55148,820,22124,096,0002,008,0002,289,664
14Apr 18, 2025 23:5670,63548,615,56924,125,0002,010,0002,273,280
15Apr 18, 2025 23:5570,64352,058,62725,133,0001,005,0002,289,664