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 listJul 13, 2021 18:17Yuriy LyfenkoYuriy LyfenkoScore: 64,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 18:1764,189551,043,35122,761,000989,0002,281,472
2Jul 13, 2021 18:1764,219553,216,15021,781,0001,980,0002,281,472
3Jul 13, 2021 18:1764,386546,802,90221,838,0001,985,0002,281,472
4Jul 13, 2021 18:1764,451547,882,83421,860,0001,987,0002,285,568
5Jul 13, 2021 18:1764,478545,537,48921,869,0001,988,0002,285,568
6Jul 13, 2021 18:1764,551548,101,85322,889,000995,0002,285,568
7Jul 13, 2021 18:1764,562548,246,24821,898,0001,990,0002,281,472
8Jul 13, 2021 18:1764,576548,721,79921,902,0001,991,0002,281,472
9Jul 13, 2021 18:1764,611546,235,53021,914,0001,992,0002,281,472
10Jul 13, 2021 18:2066,683586,627,97624,672,78802,240,512
11Jul 13, 2021 18:1766,715579,530,65024,684,62202,244,608
12Jul 13, 2021 18:1766,939588,058,59524,767,28602,265,088
13Jul 13, 2021 18:2067,036586,847,25124,803,45202,240,512
14Jul 13, 2021 18:1767,039588,017,66824,804,52202,269,184
15Jul 13, 2021 18:2067,067593,575,82224,814,87302,244,608