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 11, 2021 17:51Sergey StreminSergey StreminScore: 71,849Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2021 17:5171,06852,766,79525,284,0001,011,0002,490,368
2Sep 11, 2021 17:5171,21949,874,48426,351,00002,502,656
3Sep 11, 2021 17:5171,23048,237,50726,355,00002,494,464
4Sep 11, 2021 17:5171,25951,409,59925,352,0001,014,0002,285,568
5Sep 11, 2021 17:5171,34152,169,47726,396,00002,502,656
6Sep 11, 2021 17:5171,38149,232,65226,411,00002,486,272
7Sep 11, 2021 17:5171,47051,359,70125,427,0001,017,0002,502,656
8Sep 11, 2021 17:5171,48649,009,27925,433,0001,017,0002,502,656
9Sep 11, 2021 17:5171,50055,544,46925,438,0001,017,0002,281,472
10Sep 11, 2021 17:5171,59250,120,87226,489,00002,490,368
11Sep 11, 2021 17:5171,72254,728,50126,537,00002,486,272
12Sep 11, 2021 17:5171,77851,582,27925,537,0001,021,0002,281,472
13Sep 11, 2021 17:5171,84948,664,06325,562,0001,022,0002,502,656
14Sep 11, 2021 17:5171,91456,984,31325,585,0001,023,0002,498,560
15Sep 11, 2021 17:5171,91651,583,15225,586,0001,023,0002,285,568
16Sep 11, 2021 17:5172,04158,718,88625,630,0001,025,0002,490,368
17Sep 11, 2021 17:5172,11660,256,25125,657,0001,026,0002,502,656
18Sep 11, 2021 17:5172,56551,518,39525,855,000994,0002,281,472
19Sep 11, 2021 17:5173,95397,966,26827,362,51102,260,992
20Sep 11, 2021 17:5174,19295,200,64027,451,00402,211,840
21Sep 11, 2021 17:5174,296101,942,62427,489,58802,260,992
22Sep 11, 2021 17:5174,515107,220,02627,570,55102,260,992
23Sep 11, 2021 17:5174,561106,216,16227,587,69702,203,648
24Sep 11, 2021 17:5174,62487,780,73727,610,93202,191,360