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 listJun 19, 2025 18:10Abhigyan NiranjanAbhigyan NiranjanScore: 121,897Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2025 18:22121,17673,120,15142,843,0001,992,0002,359,296
2Jun 19, 2025 18:22121,21672,577,53742,812,0002,038,0002,363,392
3Jun 19, 2025 18:22121,43874,656,35942,935,0001,997,0002,392,064
4Jun 19, 2025 18:22121,46578,120,28042,945,0001,997,0002,396,160
5Jun 19, 2025 18:22121,46873,297,26641,947,0002,996,0002,359,296
6Jun 19, 2025 18:22121,47376,728,34341,949,0002,996,0002,355,200
7Jun 19, 2025 18:10121,50076,548,90642,957,0001,998,0002,400,256
8Jun 19, 2025 18:25121,70877,917,63842,030,0003,002,0002,387,968
9Jun 19, 2025 18:10121,77072,659,32643,053,0002,002,0002,355,200
10Jun 19, 2025 18:10121,89277,256,17042,094,0003,006,0002,486,272
11Jun 19, 2025 18:25121,89772,903,25742,096,0003,006,0002,363,392
12Jun 19, 2025 18:10122,04669,570,48542,147,0003,010,0002,359,296
13Jun 19, 2025 18:10122,20876,838,41442,203,0003,014,0002,396,160
14Jun 19, 2025 18:25122,21170,910,17042,204,0003,014,0002,342,912
15Jun 19, 2025 18:10122,33266,936,73843,252,0002,011,0002,396,160
16Jun 19, 2025 18:22122,39274,134,80742,266,0003,019,0002,392,064
17Jun 19, 2025 18:10122,42775,048,45043,285,0002,013,0002,400,256
18Jun 19, 2025 18:10122,50569,262,96842,306,0003,021,0002,359,296
19Jun 19, 2025 18:22122,71669,362,87242,378,0003,027,0002,359,296
20Jun 19, 2025 18:10123,28171,643,86144,601,0001,013,0002,363,392
21Jun 19, 2025 18:22123,84971,974,70843,832,0001,992,0002,363,392