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 listSep 15, 2021 18:10Yuriy LyfenkoYuriy LyfenkoScore: 61,508Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2021 18:0660,992554,349,28821,542,0001,025,0002,281,472
2Sep 15, 2021 18:1061,068552,250,92321,568,0001,027,0002,281,472
3Sep 15, 2021 18:1061,084549,468,84721,574,0001,027,0002,285,568
4Sep 15, 2021 18:0661,111552,854,12522,611,00002,281,472
5Sep 15, 2021 18:0661,127548,476,04621,589,0001,028,0002,277,376
6Sep 15, 2021 18:1061,138552,568,64821,593,0001,028,0002,273,280
7Sep 15, 2021 18:0661,157548,938,71921,600,0001,028,0002,281,472
8Sep 15, 2021 18:1061,170550,075,11620,665,0001,968,0002,281,472
9Sep 15, 2021 18:0661,262549,760,00621,682,000985,0002,289,664
10Sep 15, 2021 18:1061,330550,158,07420,719,0001,973,0002,289,664
11Sep 15, 2021 18:1061,468551,350,58320,766,0001,977,0002,269,184
12Sep 15, 2021 18:0661,497550,383,70520,776,0001,978,0002,285,568
13Sep 15, 2021 18:1061,508550,051,03720,779,0001,979,0002,285,568
14Sep 15, 2021 18:1061,511554,404,33421,770,000989,0002,281,472
15Sep 15, 2021 18:1061,541546,897,43820,790,0001,980,0002,273,280
16Sep 15, 2021 18:0661,551550,692,57720,794,0001,980,0002,281,472
17Sep 15, 2021 18:0661,559553,520,02420,797,0001,980,0002,281,472
18Sep 15, 2021 18:0661,568551,610,49421,790,000990,0002,285,568
19Sep 15, 2021 18:1064,030584,307,55823,691,25302,252,800
20Sep 15, 2021 18:0664,054587,980,74723,700,12802,252,800
21Sep 15, 2021 18:0664,236590,210,85923,767,45902,252,800
22Sep 15, 2021 18:1064,351586,204,04623,809,79202,277,376
23Sep 15, 2021 18:0664,645583,164,27523,918,82502,248,704
24Sep 15, 2021 18:1064,660589,237,29023,924,07602,252,800