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 15, 2021 18:02Yuriy LyfenkoYuriy LyfenkoScore: 61,508Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2021 18:0260,835551,555,36222,509,00002,285,568
2Sep 15, 2021 18:0260,903548,347,81621,510,0001,024,0002,289,664
3Sep 15, 2021 18:0260,989553,174,89421,541,0001,025,0002,281,472
4Sep 15, 2021 18:0161,057549,954,77121,565,0001,026,0002,281,472
5Sep 15, 2021 18:0161,105552,029,90821,582,0001,027,0002,281,472
6Sep 15, 2021 18:0261,130547,062,30321,590,0001,028,0002,281,472
7Sep 15, 2021 18:0261,132554,164,27421,591,0001,028,0002,281,472
8Sep 15, 2021 18:0261,132554,189,46722,619,00002,281,472
9Sep 15, 2021 18:0261,138550,342,94921,593,0001,028,0002,273,280
10Sep 15, 2021 18:0161,154548,884,44421,599,0001,028,0002,281,472
11Sep 15, 2021 18:0161,195554,455,40421,613,0001,029,0002,281,472
12Sep 15, 2021 18:0261,205550,579,21720,588,0002,058,0002,273,280
13Sep 15, 2021 18:0161,214552,104,48821,620,0001,029,0002,285,568
14Sep 15, 2021 18:0161,300549,350,49621,695,000986,0002,281,472
15Sep 15, 2021 18:0261,411552,352,84521,735,000987,0002,269,184
16Sep 15, 2021 18:0261,416550,393,55622,724,00002,367,488
17Sep 15, 2021 18:0261,419554,674,39520,749,0001,976,0002,281,472
18Sep 15, 2021 18:0161,438550,611,41920,756,0001,976,0002,289,664
19Sep 15, 2021 18:0261,508549,290,20420,779,0001,979,0002,289,664
20Sep 15, 2021 18:0261,511551,688,78120,780,0001,979,0002,281,472
21Sep 15, 2021 18:0261,522558,108,94521,774,000989,0002,281,472
22Sep 15, 2021 18:0261,527551,801,35920,786,0001,979,0002,281,472
23Sep 15, 2021 18:0161,530553,887,63021,777,000989,0002,281,472
24Sep 15, 2021 18:0161,530552,063,50020,787,0001,979,0002,273,280
25Sep 15, 2021 18:0261,535558,367,03920,789,0001,979,0002,289,664
26Sep 15, 2021 18:0261,541548,645,67120,790,0001,980,0002,269,184
27Sep 15, 2021 18:0261,549557,227,51720,793,0001,980,0002,273,280
28Sep 15, 2021 18:0264,185584,059,55723,748,59602,248,704
29Sep 15, 2021 18:0164,197582,624,35023,752,76402,269,184
30Sep 15, 2021 18:0164,247594,349,61623,771,33302,269,184
31Sep 15, 2021 18:0264,279589,276,58123,783,22402,252,800
32Sep 15, 2021 18:0264,285584,664,34823,785,48302,248,704
33Sep 15, 2021 18:0264,373579,293,22823,818,14502,273,280
34Sep 15, 2021 18:0164,379585,235,54223,820,31002,252,800
35Sep 15, 2021 18:0264,682581,337,88623,932,25502,248,704
36Sep 15, 2021 18:0264,730581,901,27623,950,03302,252,800