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 14, 2021 13:44Yuriy LyfenkoYuriy LyfenkoScore: 88,646Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2021 13:4887,049555,735,91430,195,0002,013,0002,326,528
2Jul 14, 2021 13:4487,503555,910,79430,353,0002,023,0002,326,528
3Jul 14, 2021 13:4487,724554,434,49430,430,0002,028,0002,326,528
4Jul 14, 2021 13:4487,751557,152,56930,439,0002,029,0002,502,656
5Jul 14, 2021 13:4887,946561,323,28431,524,0001,016,0002,326,528
6Jul 14, 2021 13:4888,038560,087,10231,557,0001,017,0002,506,752
7Jul 14, 2021 13:4888,043559,355,54231,558,0001,018,0002,326,528
8Jul 14, 2021 13:4388,133588,069,02732,609,08702,248,704
9Jul 14, 2021 13:4888,466591,163,09532,732,56802,252,800
10Jul 14, 2021 13:4888,527563,781,68230,770,0001,985,0002,330,624
11Jul 14, 2021 13:4888,537600,895,67332,758,58802,252,800
12Jul 14, 2021 13:4488,543594,169,93632,761,07702,252,800
13Jul 14, 2021 13:4388,550590,273,52932,763,35402,252,800
14Jul 14, 2021 13:4488,550587,198,76132,763,61102,248,704
15Jul 14, 2021 13:4488,573558,770,63131,779,000993,0002,330,624
16Jul 14, 2021 13:4488,646562,852,30729,818,0002,981,0002,510,848
17Jul 14, 2021 13:4488,662558,323,77330,817,0001,988,0002,326,528
18Jul 14, 2021 13:4488,800593,500,85632,855,93602,248,704
19Jul 14, 2021 13:4888,917595,684,88532,899,46202,179,072
20Jul 14, 2021 13:4488,930603,919,00232,904,21602,252,800
21Jul 14, 2021 13:4488,970560,509,64429,927,0002,992,0002,330,624
22Jul 14, 2021 13:4489,154563,592,22529,989,0002,998,0002,326,528
23Jul 14, 2021 13:4489,260599,134,10633,026,15802,306,048
24Jul 14, 2021 13:4889,327558,650,66930,047,0003,004,0002,318,336
25Jul 14, 2021 13:4889,346556,409,91431,055,0002,003,0002,330,624
26Jul 14, 2021 13:4889,419561,317,92731,080,0002,005,0002,326,528
27Jul 14, 2021 13:4489,435555,610,36730,083,0003,008,0002,510,848
28Jul 14, 2021 13:4889,530558,583,38531,119,0002,007,0002,330,624
29Jul 14, 2021 13:4389,540590,589,92733,129,87402,179,072
30Jul 14, 2021 13:4489,791599,790,82033,222,81602,248,704