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 listAug 28, 2023 21:28Franek KortaFranek KortaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 28, 2023 21:2900000Error: No answer to stdout. Died or killed?stderr
2Aug 28, 2023 21:2900000Error: No answer to stdout. Died or killed?stderr
3Aug 28, 2023 21:2700000Error: No answer to stdout. Died or killed?stderr
4Aug 28, 2023 21:2700000Error: expected "429496438875 ", got "429496437840 "stderr
5Aug 28, 2023 21:2600000Error: expected "429496539429 ", got "429496537434 "stderr
6Aug 28, 2023 21:2600000Error: expected "429496516018 ", got "429496511041 "stderr
7Aug 28, 2023 21:2600000Error: expected "429496490010 ", got "429496485979 "stderr
8Aug 28, 2023 21:2500000Error: expected "429496486285 ", got "429496483452 "stderr
9Aug 28, 2023 21:2400000Error: No answer to stdout. Died or killed?stderr
10Aug 28, 2023 21:2864,48650,704,97821,872,0001,988,0002,441,216
11Aug 28, 2023 21:2364,49252,904,52920,880,0002,982,0002,531,328
12Aug 28, 2023 21:2364,52452,253,47323,874,00002,527,232
13Aug 28, 2023 21:2864,54648,937,62319,902,0003,980,0002,445,312
14Aug 28, 2023 21:2364,55753,556,46921,896,0001,990,0002,433,024
15Aug 28, 2023 21:2364,55954,256,64322,892,000995,0002,531,328
16Aug 28, 2023 21:2864,58653,021,77622,858,0001,039,0002,265,088
17Aug 28, 2023 21:2864,58946,677,54022,903,000995,0002,531,328
18Aug 28, 2023 21:2364,62248,605,86521,918,0001,992,0002,433,024
19Aug 28, 2023 21:2364,65747,469,85022,927,000996,0002,269,184
20Aug 28, 2023 21:2864,71944,154,85221,951,0001,995,0002,437,120
21Aug 28, 2023 21:2865,01150,134,04022,050,0002,004,0002,531,328
22Aug 28, 2023 21:2365,04146,396,81123,019,0001,046,0002,527,232
23Aug 28, 2023 21:2365,04148,615,90019,052,0005,013,0002,269,184
24Aug 28, 2023 21:2865,05153,882,70221,061,0003,008,0002,437,120
25Aug 28, 2023 21:2365,07043,753,74223,073,0001,003,0002,531,328
26Aug 28, 2023 21:2865,11942,329,15723,091,0001,003,0002,269,184
27Aug 28, 2023 21:2865,29546,167,36422,146,0002,013,0002,514,944
28Aug 28, 2023 21:2869,86690,781,31325,850,45202,285,568
29Aug 28, 2023 21:2369,870102,559,05225,851,86502,293,760
30Aug 28, 2023 21:2869,90887,181,01625,865,81202,285,568
31Aug 28, 2023 21:2370,32492,470,72226,019,90502,285,568
32Aug 28, 2023 21:2870,519106,581,50826,091,90902,277,376
33Aug 28, 2023 21:2370,88787,809,43726,228,22302,293,760