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 10, 2021 19:00Sergey StreminSergey StreminScore: 104,578Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2021 19:00103,02261,219,99136,112,0002,006,0002,371,584
2Sep 10, 2021 19:01103,07362,869,02536,130,0002,007,0002,371,584
3Sep 10, 2021 19:01103,08161,309,89937,137,0001,003,0002,367,488
4Sep 10, 2021 19:01103,22761,935,02937,189,0001,005,0002,289,664
5Sep 10, 2021 19:00103,43865,124,47036,258,0002,014,0002,363,392
6Sep 10, 2021 19:01103,53058,425,40637,298,0001,008,0002,289,664
7Sep 10, 2021 19:00103,75965,471,25638,391,00002,379,776
8Sep 10, 2021 19:00103,81165,417,89737,400,0001,010,0002,379,776
9Sep 10, 2021 19:01104,11160,266,70438,521,00002,375,680
10Sep 10, 2021 19:00104,11464,537,19138,522,00002,289,664
11Sep 10, 2021 19:01104,34165,118,82937,591,0001,015,0002,367,488
12Sep 10, 2021 19:00104,50563,757,02937,650,0001,017,0002,367,488
13Sep 10, 2021 19:00104,57863,835,47737,676,0001,018,0002,375,680
14Sep 10, 2021 19:01104,974111,380,07538,840,46302,260,992
15Sep 10, 2021 19:00105,02765,512,79637,864,000996,0002,383,872
16Sep 10, 2021 19:01105,07370,044,94636,884,0001,993,0002,449,408
17Sep 10, 2021 19:01105,17368,845,69536,919,0001,995,0002,371,584
18Sep 10, 2021 19:01105,21466,329,07337,931,000998,0002,289,664
19Sep 10, 2021 19:00105,23269,634,34536,940,0001,996,0002,289,664
20Sep 10, 2021 19:01105,368114,844,28638,985,99902,203,648
21Sep 10, 2021 19:01105,627115,579,94639,081,84102,203,648
22Sep 10, 2021 19:00105,692106,080,32139,105,98202,207,744
23Sep 10, 2021 19:00105,983105,785,15039,213,87202,199,552
24Sep 10, 2021 19:00106,237110,763,45839,307,53402,260,992