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 7, 2021 21:21Yuriy LyfenkoYuriy LyfenkoScore: 124,548Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2021 21:21103,47288,019,42438,284,46502,301,952
2Jul 7, 2021 21:21106,974113,607,41339,580,29102,310,144
3Jul 7, 2021 21:21108,206100,980,99540,036,14602,211,840
4Jul 7, 2021 21:21110,285118,147,84240,805,33802,322,432
5Jul 7, 2021 21:21115,81999,522,31442,853,01302,203,648
6Jul 7, 2021 21:21116,543111,298,94143,120,79102,306,048
7Jul 7, 2021 21:21121,863104,048,59545,089,39802,228,224
8Jul 7, 2021 21:21124,548101,445,76346,082,72502,293,760
9Jul 7, 2021 21:21126,309108,821,94546,734,23702,265,088
10Jul 7, 2021 21:21131,001106,725,19648,470,20502,318,336
11Jul 7, 2021 21:21161,243113,793,02259,659,80402,281,472
12Jul 7, 2021 21:21167,871129,734,90862,112,25802,195,456
13Jul 7, 2021 21:21240,000538,027,74088,799,958059,269,120
14Jul 7, 2021 21:21255,491615,656,44794,531,813061,394,944
15Jul 7, 2021 21:21270,885561,198,493100,227,559063,082,496