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 listMay 26, 2025 06:16E SequeiraE SequeiraScore: 91,643Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 26, 2025 06:2390,41656,041,88731,427,0002,027,0002,269,184
2May 26, 2025 06:2390,74359,568,38132,558,0001,017,0002,269,184
3May 26, 2025 06:3990,90064,421,11132,614,0001,019,0002,285,568
4May 26, 2025 06:2391,08658,407,48332,681,0001,021,0002,265,088
5May 26, 2025 06:2391,42460,527,16332,833,000994,0002,285,568
6May 26, 2025 06:3991,44158,913,21832,838,000995,0002,285,568
7May 26, 2025 06:2391,44665,726,53131,845,0001,990,0002,285,568
8May 26, 2025 06:3991,45760,786,32932,844,000995,0002,260,992
9May 26, 2025 06:1691,46259,693,36231,851,0001,990,0002,269,184
10May 26, 2025 06:1691,48662,756,20531,859,0001,991,0002,285,568
11May 26, 2025 06:3991,49259,840,34232,857,000995,0002,363,392
12May 26, 2025 06:1691,49764,123,41431,863,0001,991,0002,285,568
13May 26, 2025 06:2391,55762,096,79432,850,0001,026,0002,285,568
14May 26, 2025 06:4091,57058,169,30831,888,0001,993,0002,260,992
15May 26, 2025 06:3991,64162,513,62131,913,0001,994,0002,285,568
16May 26, 2025 06:3991,64362,355,06031,914,0001,994,0002,285,568
17May 26, 2025 06:1691,68668,174,01831,929,0001,995,0002,285,568
18May 26, 2025 06:3991,68965,644,79831,930,0001,995,0002,285,568
19May 26, 2025 06:4091,73862,169,61431,947,0001,996,0002,285,568
20May 26, 2025 06:1691,79557,475,22631,967,0001,997,0002,265,088
21May 26, 2025 06:3991,83861,137,13131,982,0001,998,0002,269,184
22May 26, 2025 06:1691,92764,153,09032,013,0002,000,0002,285,568
23May 26, 2025 06:2391,95464,219,78633,023,0001,000,0002,285,568
24May 26, 2025 06:2392,12759,050,47132,082,0002,005,0002,273,280
25May 26, 2025 06:1692,17367,204,20032,098,0002,006,0002,285,568
26May 26, 2025 06:4092,19257,037,50932,105,0002,006,0002,285,568
27May 26, 2025 06:1692,20357,222,47632,109,0002,006,0002,519,040
28May 26, 2025 06:3992,25460,264,76532,127,0002,007,0002,510,848
29May 26, 2025 06:2392,49756,066,60732,211,0002,013,0002,269,184
30May 26, 2025 06:1692,68155,890,45832,275,0002,017,0002,523,136