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 listMar 17, 2025 21:48Aniruddha DebAniruddha DebScore: 69,889Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 17, 2025 21:4769,35949,890,46725,663,00002,531,328
2Mar 17, 2025 21:4769,43547,002,66625,691,00002,531,328
3Mar 17, 2025 21:4269,74947,893,34424,815,000992,0002,510,848
4Mar 17, 2025 21:4269,77048,183,72323,830,0001,985,0002,531,328
5Mar 17, 2025 21:4769,81453,961,07223,844,0001,987,0002,428,928
6Mar 17, 2025 21:4269,87849,158,12623,867,0001,988,0002,433,024
7Mar 17, 2025 21:4769,88451,623,87724,863,000994,0002,531,328
8Mar 17, 2025 21:4769,88956,068,68025,859,00002,531,328
9Mar 17, 2025 21:4769,88953,239,88324,865,000994,0002,531,328
10Mar 17, 2025 21:4869,89251,730,94423,871,0001,989,0002,269,184
11Mar 17, 2025 21:4869,90551,111,55025,865,00002,428,928
12Mar 17, 2025 21:4769,94650,443,81324,885,000995,0002,428,928
13Mar 17, 2025 21:4770,07347,121,16625,927,00002,420,736
14Mar 17, 2025 21:4770,11149,219,26123,946,0001,995,0002,510,848
15Mar 17, 2025 21:4870,11450,889,73924,945,000997,0002,510,848