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 13, 2021 13:58Yuriy LyfenkoYuriy LyfenkoScore: 107,278Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 13:19106,67362,179,68038,457,0001,012,0002,334,720
2Jul 13, 2021 13:58106,74161,511,36137,469,0002,025,0002,523,136
3Jul 13, 2021 13:19106,75764,101,02138,488,0001,012,0002,519,040
4Jul 13, 2021 13:58106,78960,183,96738,499,0001,013,0002,334,720
5Jul 13, 2021 13:58106,80364,081,91137,491,0002,026,0002,334,720
6Jul 13, 2021 13:19107,00366,245,96838,576,0001,015,0002,383,872
7Jul 13, 2021 13:19107,00567,083,63938,577,0001,015,0002,527,232
8Jul 13, 2021 13:58107,00864,260,04237,563,0002,030,0002,334,720
9Jul 13, 2021 13:19107,05769,952,12338,596,0001,015,0002,527,232
10Jul 13, 2021 13:58107,10867,054,14737,598,0002,032,0002,334,720
11Jul 13, 2021 13:58107,21466,087,25438,652,0001,017,0002,334,720
12Jul 13, 2021 13:19107,21966,151,79438,654,0001,017,0002,523,136
13Jul 13, 2021 13:19107,25963,907,19038,669,0001,017,0002,383,872
14Jul 13, 2021 13:58107,27867,045,60238,676,0001,017,0002,334,720
15Jul 13, 2021 13:58107,28169,625,16738,677,0001,017,0002,334,720
16Jul 13, 2021 13:58107,74167,918,24237,871,0001,993,0002,334,720
17Jul 13, 2021 13:19107,74968,996,17037,874,0001,993,0002,334,720
18Jul 13, 2021 13:19107,81971,123,91638,896,000997,0002,519,040
19Jul 13, 2021 14:51109,28498,916,22540,435,13702,187,264
20Jul 13, 2021 13:58109,421106,256,05840,485,71902,183,168
21Jul 13, 2021 13:19109,465112,969,04740,502,10402,187,264
22Jul 13, 2021 13:19109,487112,063,09640,510,23202,187,264
23Jul 13, 2021 13:58109,504121,399,68540,516,40602,306,048
24Jul 13, 2021 14:51109,549100,883,24340,533,10402,179,072
25Jul 13, 2021 14:51109,869101,295,90740,651,50102,179,072
26Jul 13, 2021 13:19109,871109,984,51840,652,10602,183,168
27Jul 13, 2021 13:58110,02392,319,23340,708,33302,183,168