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 listNov 10, 2025 13:54izotoffizotoffScore: 183,673Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2025 13:54182,75998,388,57867,621,00002,326,528
2Nov 10, 2025 14:12183,25193,474,06164,812,0002,991,0002,322,432
3Nov 10, 2025 14:12183,33092,079,58166,835,000997,0002,326,528
4Nov 10, 2025 14:12183,33597,420,01764,842,0002,992,0002,322,432
5Nov 10, 2025 14:12183,35498,456,44065,846,0001,995,0002,322,432
6Nov 10, 2025 13:54183,43099,097,80466,871,000998,0002,428,928
7Nov 10, 2025 13:54183,54393,269,51265,914,0001,997,0002,420,736
8Nov 10, 2025 13:54183,55795,878,47765,919,0001,997,0002,322,432
9Nov 10, 2025 14:12183,557102,316,30365,919,0001,997,0002,326,528
10Nov 10, 2025 13:54183,67394,015,77365,961,0001,998,0002,330,624
11Nov 10, 2025 14:12183,700100,315,55864,971,0002,998,0002,437,120
12Nov 10, 2025 14:12183,72496,817,18964,979,0002,999,0002,433,024
13Nov 10, 2025 14:12183,88194,347,62366,035,0002,001,0002,326,528
14Nov 10, 2025 14:12183,89593,019,79667,041,0001,000,0002,322,432
15Nov 10, 2025 13:54183,98694,756,16666,073,0002,002,0002,326,528
16Nov 10, 2025 13:54184,073100,366,62366,104,0002,003,0002,322,432
17Nov 10, 2025 13:54184,27689,963,18067,180,0001,002,0002,330,624
18Nov 10, 2025 13:54184,53293,390,85667,273,0001,004,0002,322,432