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 listFeb 23, 2024 07:12Huy Duc LeHuy Duc LeScore: 67,570Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 07:1267,10051,488,85522,841,0001,986,0002,277,376
2Feb 22, 2024 07:4067,10049,968,80221,848,0002,979,0002,510,848
3Feb 23, 2024 07:1267,17856,156,21222,868,0001,988,0002,510,848
4Feb 22, 2024 07:4067,31453,328,60721,918,0002,988,0002,273,280
5Feb 22, 2024 07:4067,34651,023,99422,925,0001,993,0002,506,752
6Feb 23, 2024 07:1267,38650,585,36222,939,0001,994,0002,347,008
7Feb 22, 2024 07:4067,40057,317,22421,946,0002,992,0002,506,752
8Feb 23, 2024 07:1267,42450,894,11522,952,0001,995,0002,510,848
9Feb 22, 2024 07:4067,51455,542,33122,982,0001,998,0002,273,280
10Feb 23, 2024 07:1267,51650,682,15022,983,0001,998,0002,510,848
11Feb 23, 2024 07:1267,52450,488,19022,986,0001,998,0002,498,560
12Feb 22, 2024 07:4067,53851,917,81222,990,0001,999,0002,514,944
13Feb 22, 2024 07:4067,57052,574,98922,001,0003,000,0002,355,200
14Feb 22, 2024 07:4067,62450,999,94022,019,0003,002,0002,265,088
15Feb 23, 2024 07:1267,63855,490,92123,024,0002,002,0002,494,464
16Feb 22, 2024 07:4067,69250,996,03423,043,0002,003,0002,510,848
17Feb 23, 2024 07:1267,77853,462,54124,075,0001,003,0002,273,280
18Feb 23, 2024 07:1267,80551,873,32123,081,0002,007,0002,273,280
19Feb 22, 2024 07:4071,881110,950,22526,595,96502,199,552
20Feb 23, 2024 07:1272,01099,113,93126,643,53302,240,512
21Feb 23, 2024 07:1272,020105,605,94526,647,29402,248,704
22Feb 22, 2024 07:4072,15093,212,23326,695,47902,248,704
23Feb 23, 2024 07:1272,351105,351,55726,769,80902,244,608
24Feb 22, 2024 07:4072,55095,486,59926,843,31502,248,704