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 14, 2021 14:57Yuriy LyfenkoYuriy LyfenkoScore: 61,914Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2021 14:5761,519554,134,11720,783,0001,979,0002,281,472
2Jul 14, 2021 14:5961,530554,177,78520,787,0001,979,0002,281,472
3Jul 14, 2021 14:5761,589553,636,81021,798,000990,0002,269,184
4Jul 14, 2021 14:5961,608546,295,98122,795,00002,273,280
5Jul 14, 2021 14:5761,622545,150,82221,809,000991,0002,281,472
6Jul 14, 2021 14:5761,649546,664,68221,819,000991,0002,277,376
7Jul 14, 2021 14:5961,692549,490,72820,842,0001,984,0002,281,472
8Jul 14, 2021 14:5961,692546,576,42320,842,0001,984,0002,285,568
9Jul 14, 2021 14:5961,743543,905,44021,852,000993,0002,281,472
10Jul 14, 2021 14:5961,843548,183,83020,893,0001,989,0002,285,568
11Jul 14, 2021 14:5961,868550,191,70720,901,0001,990,0002,527,232
12Jul 14, 2021 14:5761,876545,176,39920,904,0001,990,0002,281,472
13Jul 14, 2021 14:5761,914551,258,82020,916,0001,992,0002,285,568
14Jul 14, 2021 14:5761,916556,176,26320,917,0001,992,0002,273,280
15Jul 14, 2021 14:5761,946547,106,42020,927,0001,993,0002,285,568
16Jul 14, 2021 14:5961,951551,137,85821,926,000996,0002,527,232
17Jul 14, 2021 14:5762,041554,014,33420,959,0001,996,0002,285,568
18Jul 14, 2021 14:5962,132545,819,71320,990,0001,999,0002,285,568
19Jul 14, 2021 14:5764,321594,794,08523,798,84302,244,608
20Jul 14, 2021 14:5764,341580,630,49123,806,12802,244,608
21Jul 14, 2021 14:5964,484585,333,14523,859,26002,248,704
22Jul 14, 2021 14:5964,603585,322,84723,903,05502,244,608
23Jul 14, 2021 14:5964,641583,388,67623,917,32202,269,184
24Jul 14, 2021 14:5764,677586,256,01023,930,42202,244,608