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 listJul 13, 2021 18:14Yuriy LyfenkoYuriy LyfenkoScore: 64,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 18:1464,238549,728,37122,778,000990,0002,281,472
2Jul 13, 2021 18:1064,259553,047,84022,786,000990,0002,281,472
3Jul 13, 2021 18:1464,303549,697,25422,758,0001,034,0002,281,472
4Jul 13, 2021 18:1064,346548,961,77921,824,0001,984,0002,527,232
5Jul 13, 2021 18:1064,359548,931,58021,829,0001,984,0002,281,472
6Jul 13, 2021 18:1064,362548,466,55821,830,0001,984,0002,367,488
7Jul 13, 2021 18:1064,389549,453,83721,839,0001,985,0002,527,232
8Jul 13, 2021 18:1464,403549,303,99721,844,0001,985,0002,285,568
9Jul 13, 2021 18:1464,411546,320,77821,846,0001,986,0002,285,568
10Jul 13, 2021 18:1064,414548,323,63621,847,0001,986,0002,285,568
11Jul 13, 2021 18:1464,416546,336,48421,848,0001,986,0002,281,472
12Jul 13, 2021 18:1464,476543,745,69821,868,0001,988,0002,285,568
13Jul 13, 2021 18:1464,500551,638,08922,871,000994,0002,281,472
14Jul 13, 2021 18:1464,516548,705,92521,882,0001,989,0002,527,232
15Jul 13, 2021 18:1064,549552,308,13021,893,0001,990,0002,531,328
16Jul 13, 2021 18:1064,554546,470,55122,890,000995,0002,281,472
17Jul 13, 2021 18:1464,649547,723,48821,927,0001,993,0002,285,568
18Jul 13, 2021 18:1064,859549,351,66821,999,0001,999,0002,285,568
19Jul 13, 2021 18:1066,823590,706,91724,724,32902,248,704
20Jul 13, 2021 18:1466,914575,443,66224,758,13902,265,088
21Jul 13, 2021 18:1067,004584,524,27324,791,51902,244,608
22Jul 13, 2021 18:1467,026591,433,15724,799,54902,240,512
23Jul 13, 2021 18:1067,046593,927,51324,807,09602,265,088
24Jul 13, 2021 18:1467,083583,857,22224,820,55502,240,512