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 listMar 25, 2023 16:57Yurkov AlekseyYurkov AlekseyScore: 98,989Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2023 16:5797,46564,535,89735,061,0001,001,0002,273,280
2Mar 25, 2023 16:5797,61958,737,14935,116,0001,003,0002,273,280
3Mar 25, 2023 16:5797,72264,070,35334,149,0002,008,0002,289,664
4Mar 25, 2023 16:5797,72459,826,01734,150,0002,008,0002,289,664
5Mar 25, 2023 16:5797,74157,822,50134,155,0002,009,0002,281,472
6Mar 25, 2023 16:5797,75759,714,09535,166,0001,004,0002,265,088
7Mar 25, 2023 16:5798,20058,334,49834,316,0002,018,0002,289,664
8Mar 25, 2023 16:5798,44360,947,79534,401,0002,023,0002,277,376
9Mar 25, 2023 16:5798,50361,550,13835,434,0001,012,0002,269,184
10Mar 25, 2023 16:5798,53259,022,74336,457,00002,277,376
11Mar 25, 2023 16:5798,66859,615,89635,493,0001,014,0002,289,664
12Mar 25, 2023 16:5798,95465,421,84935,596,0001,017,0002,273,280
13Mar 25, 2023 16:5798,98965,312,75635,609,0001,017,0002,289,664
14Mar 25, 2023 16:5799,20062,834,48635,685,0001,019,0002,289,664
15Mar 25, 2023 16:5799,58963,280,95535,853,000995,0002,277,376
16Mar 25, 2023 16:5799,60364,811,98534,861,0001,992,0002,273,280
17Mar 25, 2023 16:5799,62766,657,52135,866,000996,0002,289,664
18Mar 25, 2023 16:57118,60877,513,03241,891,0001,994,0002,289,664
19Mar 25, 2023 16:57131,357115,179,91348,602,12202,277,376
20Mar 25, 2023 16:57132,004111,608,28548,841,60602,260,992
21Mar 25, 2023 16:57132,088110,658,15248,872,51102,265,088
22Mar 25, 2023 16:57132,621116,984,05149,069,65902,265,088
23Mar 25, 2023 16:57132,705112,458,47949,100,85202,260,992
24Mar 25, 2023 16:57146,681118,119,21154,271,78702,273,280