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 listAug 21, 2021 18:16Yuriy LyfenkoYuriy LyfenkoScore: 61,519Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2021 18:1760,849547,174,35822,514,00002,281,472
2Aug 21, 2021 18:1760,957548,971,72621,529,0001,025,0002,285,568
3Aug 21, 2021 18:1660,965550,434,38621,532,0001,025,0002,285,568
4Aug 21, 2021 18:1661,138547,764,67521,593,0001,028,0002,281,472
5Aug 21, 2021 18:1761,138551,127,53221,593,0001,028,0002,289,664
6Aug 21, 2021 18:1661,146554,214,13222,624,00002,281,472
7Aug 21, 2021 18:1761,162552,343,97321,602,0001,028,0002,281,472
8Aug 21, 2021 18:1661,192549,526,15921,612,0001,029,0002,387,968
9Aug 21, 2021 18:1761,459550,053,56820,763,0001,977,0002,281,472
10Aug 21, 2021 18:1661,481549,855,24621,759,000989,0002,281,472
11Aug 21, 2021 18:1661,492556,388,80120,774,0001,978,0002,289,664
12Aug 21, 2021 18:1761,505553,247,96721,768,000989,0002,281,472
13Aug 21, 2021 18:1661,519547,610,67221,773,000989,0002,285,568
14Aug 21, 2021 18:1661,524547,428,87321,775,000989,0002,383,872
15Aug 21, 2021 18:1761,530550,396,20421,777,000989,0002,269,184
16Aug 21, 2021 18:1761,532551,325,05620,788,0001,979,0002,285,568
17Aug 21, 2021 18:1761,549551,485,54720,793,0001,980,0002,285,568
18Aug 21, 2021 18:1661,551552,661,05020,794,0001,980,0002,285,568
19Aug 21, 2021 18:1764,270589,318,11623,780,01702,248,704
20Aug 21, 2021 18:1664,274593,914,35123,781,39502,248,704
21Aug 21, 2021 18:1764,326587,255,17723,800,76202,269,184
22Aug 21, 2021 18:1664,339602,974,48523,805,58102,260,992
23Aug 21, 2021 18:1764,423605,268,08023,836,56002,269,184
24Aug 21, 2021 18:1664,645591,764,50823,918,61402,269,184