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 listSep 11, 2021 07:23Sergey StreminSergey StreminScore: 98,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2021 07:2397,03559,219,50934,906,000997,0002,281,472
2Sep 11, 2021 07:2397,23260,274,85133,978,0001,998,0002,494,464
3Sep 11, 2021 07:2397,30364,348,78434,002,0002,000,0002,326,528
4Sep 11, 2021 07:2397,45762,113,20435,058,0001,001,0002,277,376
5Sep 11, 2021 07:2397,46565,660,88435,061,0001,001,0002,502,656
6Sep 11, 2021 07:2397,61165,148,99134,110,0002,006,0002,502,656
7Sep 11, 2021 07:2397,73258,688,08035,157,0001,004,0002,498,560
8Sep 11, 2021 07:2397,75962,095,79935,167,0001,004,0002,494,464
9Sep 11, 2021 07:2397,96562,622,42334,234,0002,013,0002,498,560
10Sep 11, 2021 07:2397,96557,015,62434,234,0002,013,0002,281,472
11Sep 11, 2021 07:2397,99559,714,27635,251,0001,007,0002,482,176
12Sep 11, 2021 07:2398,13058,934,46034,291,0002,017,0002,502,656
13Sep 11, 2021 07:2398,16258,582,42634,303,0002,017,0002,281,472
14Sep 11, 2021 07:2398,16859,585,40535,314,0001,008,0002,285,568
15Sep 11, 2021 07:2398,196103,604,57336,332,61802,260,992
16Sep 11, 2021 07:2398,58156,413,38335,462,0001,013,0002,281,472
17Sep 11, 2021 07:2398,66194,185,50636,504,54702,195,456
18Sep 11, 2021 07:2398,70558,531,39036,521,00002,277,376
19Sep 11, 2021 07:2398,71960,110,76135,512,0001,014,0002,281,472
20Sep 11, 2021 07:2398,72259,678,99236,527,00002,281,472
21Sep 11, 2021 07:2399,064102,041,90736,653,85102,199,552
22Sep 11, 2021 07:2399,347108,860,74136,758,57302,318,336
23Sep 11, 2021 07:2399,43995,075,92036,792,34802,256,896
24Sep 11, 2021 07:2399,82597,116,83136,935,10602,203,648