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 23:34Yuriy LyfenkoYuriy LyfenkoScore: 151,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 01:46135,325984,117,56250,070,267059,269,120
2Jul 8, 2021 00:01137,791983,292,70650,982,581058,884,096
3Jul 7, 2021 23:54138,0291,033,738,14951,070,671059,162,624
4Jul 7, 2021 23:55140,0781,057,457,89651,828,744059,289,600
5Jul 7, 2021 23:54143,490993,973,79653,091,454061,108,224
6Jul 7, 2021 23:53143,9501,026,692,50553,261,483062,894,080
7Jul 8, 2021 01:46145,8651,062,416,98053,970,185062,816,256
8Jul 8, 2021 00:01146,783999,476,77354,309,751060,956,672
9Jul 8, 2021 00:00148,6721,005,069,44755,008,765061,784,064
10Jul 7, 2021 23:53149,6791,035,080,21955,381,237060,592,128
11Jul 8, 2021 00:01149,837998,066,52055,439,552058,880,000
12Jul 7, 2021 23:55149,8761,078,023,63455,454,190063,098,880
13Jul 7, 2021 23:53151,808986,910,37956,169,005061,640,704
14Jul 8, 2021 00:00152,267996,212,64756,338,812062,025,728
15Jul 7, 2021 23:53152,8971,112,247,77156,572,069060,977,152
16Jul 7, 2021 23:53153,1441,007,779,00556,663,287060,604,416
17Jul 7, 2021 23:55154,7331,093,360,04757,251,124061,632,512
18Jul 7, 2021 23:54155,9951,013,847,24957,718,277059,744,256
19Jul 7, 2021 23:53157,2361,063,018,48058,177,182060,588,032
20Jul 7, 2021 23:34157,3301,095,561,58158,212,021060,321,792
21Jul 8, 2021 00:00157,4731,089,548,72558,265,144063,340,544
22Jul 8, 2021 01:46157,5261,083,479,75158,284,529063,442,944
23Jul 7, 2021 23:34158,3561,003,479,35558,591,639059,588,608
24Jul 7, 2021 23:34158,3771,102,215,95458,599,554063,082,496