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 01:36Chandrasekaran AkashChandrasekaran AkashScore: 61,011Success
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 01:5860,49240,719,91722,382,00002,449,408
2Apr 18, 2025 01:5660,68642,838,12322,454,00002,531,328
3Apr 18, 2025 01:5660,72444,439,38421,447,0001,021,0002,531,328
4Apr 18, 2025 01:5660,75149,021,14822,478,00002,531,328
5Apr 18, 2025 01:5660,77843,211,52721,466,0001,022,0002,449,408
6Apr 18, 2025 01:5960,83243,598,26622,508,00002,441,216
7Apr 18, 2025 01:5960,87046,479,21421,499,0001,023,0002,445,312
8Apr 18, 2025 01:5660,94143,982,89122,548,00002,531,328
9Apr 18, 2025 01:5860,96549,045,60421,532,0001,025,0002,437,120
10Apr 18, 2025 01:5860,97347,689,58021,535,0001,025,0002,269,184
11Apr 18, 2025 01:5661,01152,197,22122,574,00002,437,120
12Apr 18, 2025 01:5661,04350,332,31022,586,00002,433,024
13Apr 18, 2025 01:5961,13846,227,82121,593,0001,028,0002,441,216
14Apr 18, 2025 01:5661,14355,065,09022,623,00002,445,312
15Apr 18, 2025 01:5661,15752,435,72622,628,00002,449,408
16Apr 18, 2025 01:5861,73849,386,15720,857,0001,986,0002,445,312
17Apr 18, 2025 01:5861,77847,741,63920,871,0001,987,0002,441,216
18Apr 18, 2025 01:3661,77850,637,82221,865,000993,0002,445,312
19Apr 18, 2025 01:3661,78449,004,02021,867,000993,0002,531,328
20Apr 18, 2025 01:5861,79554,833,72220,876,0001,988,0002,441,216
21Apr 18, 2025 01:3662,07350,576,51521,969,000998,0002,449,408