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 listApr 3, 2023 22:47Yurkov AlekseyYurkov AlekseyScore: 92,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 3, 2023 22:4791,53860,216,61231,877,0001,992,0002,289,664
2Apr 3, 2023 22:4791,58160,464,34132,859,0001,026,0002,273,280
3Apr 3, 2023 22:4791,73255,764,11432,943,000998,0002,289,664
4Apr 3, 2023 22:4791,80356,820,04731,969,0001,998,0002,289,664
5Apr 3, 2023 22:4791,81154,838,13231,972,0001,998,0002,273,280
6Apr 3, 2023 22:4791,91157,777,35632,007,0002,000,0002,273,280
7Apr 3, 2023 22:4791,94664,841,71332,019,0002,001,0002,289,664
8Apr 3, 2023 22:4791,96560,513,71932,026,0002,001,0002,289,664
9Apr 3, 2023 22:4791,99255,081,02732,035,0002,002,0002,289,664
10Apr 3, 2023 22:4791,99765,972,58732,037,0002,002,0002,289,664
11Apr 3, 2023 22:4792,04357,940,66932,053,0002,003,0002,277,376
12Apr 3, 2023 22:4792,04658,939,64332,054,0002,003,0002,289,664
13Apr 3, 2023 22:4792,13258,994,66232,084,0002,005,0002,273,280
14Apr 3, 2023 22:4792,14956,340,66632,090,0002,005,0002,289,664
15Apr 3, 2023 22:4792,14958,374,13033,093,0001,002,0002,289,664
16Apr 3, 2023 22:4792,17862,987,44432,100,0002,006,0002,289,664
17Apr 3, 2023 22:4792,19257,392,27833,108,0001,003,0002,289,664
18Apr 3, 2023 22:4792,21956,364,01032,114,0002,007,0002,273,280
19Apr 3, 2023 22:47113,536111,944,01142,008,44102,260,992
20Apr 3, 2023 22:47113,765117,844,14242,093,10002,269,184
21Apr 3, 2023 22:47113,880108,442,85642,135,74302,260,992
22Apr 3, 2023 22:47114,215112,174,59842,259,53602,265,088
23Apr 3, 2023 22:47114,735105,001,69842,451,91802,269,184
24Apr 3, 2023 22:47114,958109,981,39442,534,46502,273,280