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 listNov 1, 2021 10:43Ilya AniskovetsIlya AniskovetsScore: 119,073Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 1, 2021 10:44118,65769,207,30241,908,0001,995,0002,289,664
2Nov 1, 2021 10:44118,71665,877,76641,929,0001,996,0002,273,280
3Nov 1, 2021 10:44118,78471,606,53542,952,000998,0002,269,184
4Nov 1, 2021 10:44118,84367,839,38241,974,0001,998,0002,269,184
5Nov 1, 2021 10:44118,87366,976,31041,984,0001,999,0002,269,184
6Nov 1, 2021 10:44118,91467,981,55941,999,0001,999,0002,379,776
7Nov 1, 2021 10:43118,91971,568,60242,000,0002,000,0002,273,280
8Nov 1, 2021 10:43118,95766,879,36243,014,0001,000,0002,273,280
9Nov 1, 2021 10:43118,95965,238,54843,015,0001,000,0002,273,280
10Nov 1, 2021 10:44118,96570,385,04343,017,0001,000,0002,289,664
11Nov 1, 2021 10:43118,96866,896,81242,018,0002,000,0002,289,664
12Nov 1, 2021 10:44119,01469,502,20043,035,0001,000,0002,269,184
13Nov 1, 2021 10:44119,07366,478,71242,055,0002,002,0002,375,680
14Nov 1, 2021 10:43119,07868,779,13342,057,0002,002,0002,289,664
15Nov 1, 2021 10:43119,23067,227,24842,110,0002,005,0002,269,184
16Nov 1, 2021 10:43119,34167,904,63943,153,0001,003,0002,289,664
17Nov 1, 2021 10:43119,38669,197,33342,166,0002,007,0002,273,280
18Nov 1, 2021 10:43119,61166,186,49742,245,0002,011,0002,367,488
19Nov 1, 2021 10:43120,894104,664,42744,730,74902,260,992
20Nov 1, 2021 10:44121,075105,628,17744,797,61202,265,088
21Nov 1, 2021 10:43121,082106,496,55044,800,44602,277,376
22Nov 1, 2021 10:44121,509105,663,23844,958,35602,269,184
23Nov 1, 2021 10:44121,563115,363,29844,978,46002,269,184
24Nov 1, 2021 10:43121,62399,758,39745,000,47702,265,088