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 listMar 15, 2026 19:07Elijah KinElijah KinScore: 217,632Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 19:07216,608102,500,52748,087,00032,058,0002,326,528
2Mar 15, 2026 19:11216,657101,692,13749,100,00031,063,0002,273,280
3Mar 15, 2026 19:11216,681111,939,28134,073,00046,099,0002,269,184
4Mar 15, 2026 19:07216,714101,703,34238,087,00042,097,0002,326,528
5Mar 15, 2026 19:07216,784103,526,90835,092,00045,118,0002,330,624
6Mar 15, 2026 19:11217,138103,759,83744,188,00036,153,0002,269,184
7Mar 15, 2026 19:11217,316101,835,89838,193,00042,214,0002,310,144
8Mar 15, 2026 19:07217,368101,312,22142,224,00038,202,0002,269,184
9Mar 15, 2026 19:11217,446110,158,27549,279,00031,176,0002,318,336
10Mar 15, 2026 19:11217,632106,483,76835,229,00045,295,0002,330,624
11Mar 15, 2026 19:07217,730108,750,67241,287,00039,273,0002,318,336
12Mar 15, 2026 19:11217,749110,582,76646,326,00034,241,0002,273,280
13Mar 15, 2026 19:07217,846105,688,88432,241,00048,362,0002,322,432
14Mar 15, 2026 19:07218,327116,023,14730,916,00049,865,0002,330,624
15Mar 15, 2026 19:11218,386108,622,37034,915,00045,888,0002,310,144
16Mar 15, 2026 19:11219,638105,649,42740,131,00041,135,0002,269,184
17Mar 15, 2026 19:07220,130103,433,89833,182,00048,266,0002,273,280
18Mar 15, 2026 19:07221,384105,846,93639,957,00041,955,0002,273,280