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 22, 2025 19:12KeefeKeefeScore: 75,554Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2025 15:5575,14954,786,55926,812,000993,0002,273,280
2Apr 22, 2025 15:5475,25159,756,16825,855,0001,988,0002,404,352
3Apr 22, 2025 15:5575,26552,691,30626,854,000994,0002,400,256
4Apr 22, 2025 15:5475,27056,000,53326,856,000994,0002,396,160
5Apr 22, 2025 15:5575,28152,876,57626,823,0001,031,0002,400,256
6Apr 22, 2025 15:5475,33055,040,01826,877,000995,0002,273,280
7Apr 22, 2025 19:1275,33553,668,92226,879,000995,0002,273,280
8Apr 22, 2025 15:5575,37355,658,96026,856,0001,032,0002,273,280
9Apr 22, 2025 15:5575,38959,877,18326,898,000996,0002,396,160
10Apr 22, 2025 15:5575,39755,175,59225,905,0001,992,0002,387,968
11Apr 22, 2025 15:5475,46254,182,92526,924,000997,0002,273,280
12Apr 22, 2025 19:1275,46256,186,58925,927,0001,994,0002,404,352
13Apr 22, 2025 15:5475,55455,535,31826,957,000998,0002,273,280
14Apr 22, 2025 15:5475,56253,834,40326,960,000998,0002,273,280
15Apr 22, 2025 15:5475,57855,537,84626,966,000998,0002,273,280
16Apr 22, 2025 15:5575,60854,161,46925,977,0001,998,0002,273,280
17Apr 22, 2025 19:1275,68456,864,67826,003,0002,000,0002,273,280
18Apr 22, 2025 15:5475,71653,948,80426,014,0002,001,0002,273,280
19Apr 22, 2025 15:5575,71656,013,60527,015,0001,000,0002,273,280
20Apr 22, 2025 19:1275,72756,323,26826,018,0002,001,0002,273,280
21Apr 22, 2025 19:1275,73253,487,92327,021,0001,000,0002,273,280
22Apr 22, 2025 15:5475,75459,213,85727,028,0001,001,0002,396,160
23Apr 22, 2025 15:5575,78158,082,83726,037,0002,002,0002,396,160
24Apr 22, 2025 19:1277,34958,079,63427,597,0001,022,0002,273,280