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 21, 2026 02:05Dominique GarmierDominique GarmierScore: 367,027Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 22:01364,492165,458,461131,866,0002,996,0002,326,528
2Mar 20, 2026 20:14365,630161,741,693132,277,0003,006,0002,396,160
3Mar 21, 2026 00:55365,949156,969,178134,399,0001,002,0002,519,040
4Mar 20, 2026 22:01366,351160,246,983133,542,0002,008,0002,383,872
5Mar 20, 2026 20:14366,451159,677,115133,579,0002,008,0002,322,432
6Mar 21, 2026 02:05366,568164,785,995134,626,0001,004,0002,383,872
7Mar 20, 2026 17:49366,916167,340,689133,763,0001,996,0002,396,160
8Mar 20, 2026 20:14367,027165,407,340133,803,0001,997,0002,392,064
9Mar 21, 2026 00:55367,049163,569,431132,813,0002,995,0002,322,432
10Mar 20, 2026 17:49367,465162,396,742133,963,0001,999,0002,322,432
11Mar 21, 2026 02:05368,062163,063,622134,181,0002,002,0002,322,432
12Mar 21, 2026 00:55368,086158,774,289134,190,0002,002,0002,387,968
13Mar 20, 2026 22:01368,486156,517,497133,355,0002,985,0002,396,160
14Mar 21, 2026 02:05371,743163,806,677136,542,0001,003,0002,322,432
15Mar 20, 2026 17:49374,703166,240,309135,648,0002,992,0002,310,144