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 18, 2025 23:51emily graceemily graceScore: 70,116Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 19:3469,77352,890,52223,831,0001,985,0002,277,376
2Apr 18, 2025 19:3469,85756,699,20423,859,0001,988,0002,289,664
3Apr 18, 2025 19:3469,87654,416,08123,866,0001,988,0002,289,664
4Apr 18, 2025 23:4869,88952,384,99923,870,0001,989,0002,523,136
5Apr 18, 2025 19:3469,90856,172,59324,872,000994,0002,273,280
6Apr 18, 2025 23:4869,91951,502,92323,880,0001,990,0002,277,376
7Apr 18, 2025 23:4869,92451,686,24123,882,0001,990,0002,289,664
8Apr 18, 2025 23:4769,96257,163,54323,895,0001,991,0002,523,136
9Apr 18, 2025 23:4769,96551,007,82623,896,0001,991,0002,289,664
10Apr 18, 2025 19:3470,01648,998,56023,914,0001,992,0002,289,664
11Apr 18, 2025 23:4870,01952,137,44224,911,000996,0002,289,664
12Apr 18, 2025 19:3470,05149,720,57523,926,0001,993,0002,265,088
13Apr 18, 2025 23:4870,11651,302,47223,948,0001,995,0002,269,184
14Apr 18, 2025 23:4870,19248,966,99123,974,0001,997,0002,289,664
15Apr 18, 2025 23:5170,22252,669,34723,984,0001,998,0002,289,664
16Apr 18, 2025 23:5170,25952,205,57924,997,000999,0002,371,584
17Apr 18, 2025 23:5170,31951,154,07124,017,0002,001,0002,277,376
18Apr 18, 2025 19:3470,34148,414,06824,024,0002,002,0002,269,184
19Apr 18, 2025 23:4770,36548,687,62025,034,0001,001,0002,281,472
20Apr 18, 2025 23:4870,37849,080,28524,037,0002,003,0002,289,664
21Apr 18, 2025 23:4870,41948,957,65824,051,0002,004,0002,273,280
22Apr 18, 2025 19:3470,49554,276,69525,080,0001,003,0002,289,664
23Apr 18, 2025 23:4870,57851,608,94824,106,0002,008,0002,277,376
24Apr 18, 2025 19:3471,66849,358,26026,517,00002,289,664