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 7, 2021 21:20Yuriy LyfenkoYuriy LyfenkoScore: 146,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2021 21:20106,612108,115,97039,446,54502,244,608
2Jul 7, 2021 21:20106,827117,287,47339,526,15402,240,512
3Jul 7, 2021 21:20108,839100,926,32440,270,46302,293,760
4Jul 7, 2021 21:20108,906109,981,99840,295,09302,306,048
5Jul 7, 2021 21:20110,135109,741,04940,750,01502,293,760
6Jul 7, 2021 21:20120,802100,942,26444,696,55502,297,856
7Jul 7, 2021 21:20129,408129,063,42547,880,91402,285,568
8Jul 7, 2021 21:20146,256129,073,08854,114,69602,314,240
9Jul 7, 2021 21:20150,602118,041,90655,722,70802,232,320
10Jul 7, 2021 21:20240,632538,973,05489,033,680056,385,536
11Jul 7, 2021 21:20254,930538,703,62194,324,108060,624,896
12Jul 7, 2021 21:20261,323578,466,29296,689,688060,977,152
13Jul 7, 2021 21:20306,834182,755,943113,528,69702,265,088
14Jul 7, 2021 21:2012,713,9254,779,653,9964,704,152,24802,277,376
15Jul 7, 2021 21:2016,281,6376,119,043,6586,024,205,76202,301,952