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 27, 2023 22:02Franek KortaFranek KortaScore: 72,805Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 27, 2023 22:0672,16249,998,36926,700,00002,514,944
2Aug 27, 2023 22:0272,21451,104,95425,692,0001,027,0002,441,216
3Aug 27, 2023 22:0672,52751,399,36721,866,0004,969,0002,437,120
4Aug 27, 2023 22:0672,55959,567,81326,847,00002,523,136
5Aug 27, 2023 22:0272,55956,741,77126,847,00002,441,216
6Aug 27, 2023 22:0272,57358,020,79525,858,000994,0002,441,216
7Aug 27, 2023 22:0272,58151,747,77325,861,000994,0002,437,120
8Aug 27, 2023 22:0672,61452,736,89725,872,000995,0002,531,328
9Aug 27, 2023 22:0672,61951,599,74022,889,0003,980,0002,437,120
10Aug 27, 2023 22:0272,63052,725,20125,878,000995,0002,433,024
11Aug 27, 2023 22:0272,63849,387,30525,881,000995,0002,531,328
12Aug 27, 2023 22:0672,68953,441,14224,903,0001,992,0002,531,328
13Aug 27, 2023 22:0272,80555,130,99325,941,000997,0002,269,184
14Aug 27, 2023 22:0672,85945,472,22322,965,0003,993,0002,523,136
15Aug 27, 2023 22:0672,88448,679,39224,970,0001,997,0002,531,328
16Aug 27, 2023 22:0272,90548,395,78224,977,0001,998,0002,527,232
17Aug 27, 2023 22:0272,90849,432,42324,978,0001,998,0002,531,328
18Aug 27, 2023 22:0672,93047,834,92522,987,0003,997,0002,531,328
19Aug 27, 2023 22:0681,600108,533,06130,192,07702,285,568
20Aug 27, 2023 22:0281,67896,420,56130,220,88102,281,472
21Aug 27, 2023 22:0681,68197,446,37230,222,00002,285,568
22Aug 27, 2023 22:0281,89487,883,89330,300,76002,273,280
23Aug 27, 2023 22:0281,981110,851,22330,332,89902,277,376
24Aug 27, 2023 22:0682,35270,262,76530,470,19702,293,760