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 listJul 8, 2021 17:59Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 22:0900000Error: expected "429496496176 ", got "429496491922 "stderr
2Jul 8, 2021 17:5967,260581,746,48324,886,16802,260,992
3Jul 8, 2021 22:0867,300582,398,50724,901,00702,260,992
4Jul 8, 2021 22:0867,321581,643,62924,908,65902,260,992
5Jul 8, 2021 22:0867,411583,198,17624,942,17902,248,704
6Jul 8, 2021 17:5967,723583,955,24025,057,37502,248,704
7Jul 8, 2021 19:0767,749593,660,61025,067,09302,244,608
8Jul 8, 2021 17:5967,783586,046,57725,079,72502,244,608
9Jul 8, 2021 19:0767,802597,370,80325,086,83402,240,512
10Jul 8, 2021 19:0767,918599,999,62225,129,83602,256,896
11Jul 8, 2021 22:1068,678585,780,09225,410,81602,244,608
12Jul 8, 2021 22:1068,910590,115,89225,496,55902,260,992
13Jul 8, 2021 22:1069,250587,019,29325,622,55102,240,512
14Jul 8, 2021 22:0971,318592,262,73526,387,56802,244,608
15Jul 8, 2021 22:0971,589580,450,34726,488,02702,244,608
16Jul 8, 2021 22:0971,839598,889,89526,580,51202,244,608
17Jul 8, 2021 22:1080,709594,184,64129,862,21502,240,512
18Jul 8, 2021 22:1080,943591,528,17929,949,08202,244,608
19Jul 8, 2021 22:1081,350584,143,90830,099,56602,244,608