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 18, 2021 22:18Ilya AniskovetsIlya AniskovetsScore: 119,159Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2021 14:52118,45165,497,79542,831,000996,0002,523,136
2Sep 18, 2021 22:17118,60871,548,14041,891,0001,994,0002,289,664
3Sep 3, 2021 14:52118,63069,727,15642,896,000997,0002,289,664
4Sep 18, 2021 22:18118,69569,251,03541,921,0001,996,0002,527,232
5Sep 18, 2021 22:17118,70572,448,04342,923,000998,0002,289,664
6Sep 18, 2021 22:17118,71172,583,51841,927,0001,996,0002,273,280
7Sep 18, 2021 22:18118,80065,693,34242,957,000999,0002,289,664
8Sep 18, 2021 22:17118,81669,480,22742,963,000999,0002,289,664
9Sep 3, 2021 14:52118,84365,828,74941,974,0001,998,0002,285,568
10Sep 3, 2021 14:52118,88971,147,03241,990,0001,999,0002,269,184
11Sep 3, 2021 14:52118,91164,392,89841,998,0001,999,0002,527,232
12Sep 18, 2021 22:18118,96869,781,28642,018,0002,000,0002,277,376
13Sep 18, 2021 22:17119,01465,919,54042,034,0002,001,0002,289,664
14Sep 3, 2021 14:52119,01965,498,57342,036,0002,001,0002,531,328
15Sep 3, 2021 14:52119,06267,030,08142,051,0002,002,0002,260,992
16Sep 18, 2021 22:18119,10567,091,94642,066,0002,003,0002,289,664
17Sep 18, 2021 22:17119,12271,296,10542,072,0002,003,0002,289,664
18Sep 18, 2021 22:17119,15770,555,31544,088,00002,289,664
19Sep 18, 2021 22:18119,15968,282,63643,087,0001,002,0002,289,664
20Sep 18, 2021 22:17119,15971,371,38642,085,0002,004,0002,289,664
21Sep 18, 2021 22:18119,22767,235,98642,109,0002,005,0002,289,664
22Sep 18, 2021 22:18119,23569,740,85343,115,0001,002,0002,289,664
23Sep 3, 2021 14:52119,26868,718,28142,124,0002,005,0002,289,664
24Sep 18, 2021 22:17119,28167,600,29843,131,0001,003,0002,289,664
25Sep 18, 2021 22:18119,29573,716,22542,133,0002,006,0002,289,664
26Sep 18, 2021 22:18119,44372,450,15243,190,0001,004,0002,277,376
27Sep 3, 2021 14:52119,53571,362,27642,218,0002,010,0002,289,664
28Sep 18, 2021 22:17121,399111,582,47144,917,49602,256,896
29Sep 18, 2021 22:17121,688101,752,08545,024,60802,248,704
30Sep 3, 2021 14:52122,025102,041,92445,149,16802,265,088
31Sep 3, 2021 14:52122,23296,644,23345,226,02202,260,992
32Sep 18, 2021 22:18122,314108,358,86345,256,01702,277,376
33Sep 18, 2021 22:18122,476114,254,42245,315,99702,256,896
34Sep 18, 2021 22:18122,557109,371,19845,346,08402,256,896
35Sep 3, 2021 14:52122,62799,192,07145,371,83602,265,088
36Sep 18, 2021 22:17122,705114,094,86845,400,67602,269,184