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 2, 2025 18:59HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highScore: 76,951Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 2, 2025 18:5976,51657,234,30827,300,0001,011,0002,527,232
2Feb 2, 2025 18:5676,58653,832,45326,313,0002,024,0002,527,232
3Feb 2, 2025 18:5676,73852,090,14227,379,0001,014,0002,523,136
4Feb 2, 2025 18:5976,78948,775,43528,412,00002,449,408
5Feb 2, 2025 18:5676,83850,250,17527,415,0001,015,0002,445,312
6Feb 2, 2025 18:5976,85450,868,32627,421,0001,015,0002,453,504
7Feb 2, 2025 18:5676,90848,275,07128,456,00002,527,232
8Feb 2, 2025 18:5676,91156,576,60028,457,00002,527,232
9Feb 2, 2025 18:5976,92249,442,34627,445,0001,016,0002,265,088
10Feb 2, 2025 18:5976,95157,012,50227,456,0001,016,0002,437,120
11Feb 2, 2025 18:5977,12250,821,41228,535,00002,523,136
12Feb 2, 2025 18:5977,18154,330,79527,538,0001,019,0002,445,312
13Feb 2, 2025 18:5977,19557,151,82027,542,0001,020,0002,449,408
14Feb 2, 2025 18:5677,25452,166,93728,584,00002,445,312
15Feb 2, 2025 18:5677,29552,016,32828,599,00002,265,088
16Feb 2, 2025 18:5677,34651,068,94128,618,00002,527,232
17Feb 2, 2025 18:5677,35953,751,86927,601,0001,022,0002,445,312
18Feb 2, 2025 18:5977,47355,603,39627,642,0001,023,0002,527,232