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 listAug 29, 2023 21:18Franek KortaFranek KortaScore: 63,157Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2023 21:1862,57649,695,11021,140,0002,013,0002,531,328
2Aug 29, 2023 21:1862,64944,155,75721,165,0002,015,0002,531,328
3Aug 29, 2023 21:1862,71139,055,58321,186,0002,017,0002,445,312
4Aug 29, 2023 21:1862,87645,264,40822,253,0001,011,0002,441,216
5Aug 29, 2023 21:1862,90353,812,61122,263,0001,011,0002,527,232
6Aug 29, 2023 21:1862,94147,732,14621,263,0002,025,0002,453,504
7Aug 29, 2023 21:1863,13046,903,55623,358,00002,531,328
8Aug 29, 2023 21:1863,15755,157,80723,368,00002,265,088
9Aug 29, 2023 21:1863,16547,056,02322,355,0001,016,0002,531,328
10Aug 29, 2023 21:1867,10382,633,83624,828,16102,179,072
11Aug 29, 2023 21:1867,119107,311,16024,834,05102,297,856
12Aug 29, 2023 21:1867,33585,203,35224,913,99102,174,976
13Aug 29, 2023 21:1867,44189,400,43224,953,10602,301,952
14Aug 29, 2023 21:1867,48689,760,52924,969,68402,174,976
15Aug 29, 2023 21:1867,55289,879,56124,994,09202,297,856