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.

Date AuthorLanguageStatus Score
Oct 11, 2026 22:21highload-churnerhighload-churnerCPPg++13.3.0Success55,154
Oct 11, 2026 20:54highload-churnerhighload-churnerCPPg++13.3.0Success57,259
Oct 11, 2026 20:01highload-churnerhighload-churnerCPPg++13.3.0Success55,132
Oct 11, 2026 19:44highload-churnerhighload-churnerCPPg++13.3.0Success55,645
Oct 11, 2026 19:22highload-churnerhighload-churnerCPPg++13.3.0Success55,110
Oct 11, 2026 18:54highload-churnerhighload-churnerCPPg++13.3.0Success129,800
Oct 11, 2026 18:05highload-churnerhighload-churnerCPPg++13.3.0Success55,086+0.09 RP
Oct 11, 2026 17:14highload-churnerhighload-churnerCPPg++13.3.0Success55,251
Oct 11, 2026 16:38highload-churnerhighload-churnerCPPg++13.3.0Success55,113+0.19 RP
Oct 11, 2026 16:03highload-churnerhighload-churnerCPPg++13.3.0Success55,240
Oct 11, 2026 15:28highload-churnerhighload-churnerCPPg++13.3.0Success55,170+0.19 RP
Oct 11, 2026 14:18highload-churnerhighload-churnerCPPg++13.3.0Success55,743
Oct 11, 2026 13:54highload-churnerhighload-churnerCPPg++13.3.0Success55,756
Oct 11, 2026 07:18highload-churnerhighload-churnerCPPclang++18.1.3Success55,291
Oct 11, 2026 07:10highload-churnerhighload-churnerCPPclang++18.1.3Success55,262
Oct 11, 2026 06:04highload-churnerhighload-churnerCPPclang++18.1.3Success55,232
Oct 11, 2026 05:49highload-churnerhighload-churnerCPPclang++18.1.3Success55,229+0.54 RP
Oct 11, 2026 05:28highload-churnerhighload-churnerCPPclang++18.1.3Success55,394+0.41 RP
Oct 11, 2026 05:19highload-churnerhighload-churnerCPPclang++18.1.3Success55,521+0.52 RP
Oct 11, 2026 04:47highload-churnerhighload-churnerCPPclang++18.1.3Success55,783
Oct 11, 2026 04:20highload-churnerhighload-churnerCPPclang++18.1.3Success55,681+0.16 RP
Oct 11, 2026 03:51highload-churnerhighload-churnerCPPclang++18.1.3Success55,732+0.56 RP
Oct 11, 2026 03:37highload-churnerhighload-churnerCPPclang++18.1.3Success55,905+0.98 RP
Oct 11, 2026 03:02highload-churnerhighload-churnerCPPclang++18.1.3Success56,232
Oct 10, 2026 00:01highload-churnerhighload-churnerCPPclang++18.1.3Success56,245
Oct 9, 2026 23:41highload-churnerhighload-churnerCPPclang++20.1.2Success56,494
Oct 9, 2026 23:14highload-churnerhighload-churnerCPPclang++18.1.3Success56,213+0.71 RP
Oct 9, 2026 22:55highload-churnerhighload-churnerCPPclang++18.1.3Success56,527
Oct 9, 2026 22:23highload-churnerhighload-churnerCPPclang++18.1.3Success56,472
Oct 9, 2026 22:13highload-churnerhighload-churnerCPPclang++18.1.3Success56,437+0.15 RP
Oct 9, 2026 21:36highload-churnerhighload-churnerCPPclang++18.1.3Success56,518
Oct 9, 2026 21:17highload-churnerhighload-churnerCPPclang++18.1.3Success63,472
Oct 9, 2026 20:31highload-churnerhighload-churnerCPPclang++18.1.3Success58,564
Oct 9, 2026 18:10highload-churnerhighload-churnerCPPclang++18.1.3Success56,486+3.00 RP
Oct 9, 2026 18:04janwwwjanwwwCPPg++14.2.0Success63,086+158.05 RP
Oct 9, 2026 17:49highload-churnerhighload-churnerCPPg++14.2.0Success57,702
Oct 9, 2026 17:33Karthik ReddyKarthik ReddyCSHARP9.0.18Success53,991
Oct 9, 2026 17:25highload-churnerhighload-churnerCPPg++14.2.0Success57,745
Oct 9, 2026 16:06Karthik ReddyKarthik ReddyCSHARP9.0.18Success53,989
Oct 9, 2026 15:25Karthik ReddyKarthik ReddyCSHARP9.0.18Success55,040
Oct 9, 2026 14:49Karthik ReddyKarthik ReddyCSHARP9.0.18Success54,035
Oct 9, 2026 14:05highload-churnerhighload-churnerCPPg++14.2.0Success59,013
Oct 9, 2026 13:57highload-churnerhighload-churnerCPPg++14.2.0Success57,459+2.36 RP
Oct 9, 2026 13:34highload-churnerhighload-churnerCPPg++14.2.0Success59,200
Oct 9, 2026 13:18highload-churnerhighload-churnerCPPg++14.2.0Success58,248+27.92 RP
Oct 9, 2026 13:17highload-churnerhighload-churnerCPPg++14.2.0Success69,562+143.76 RP
Oct 9, 2026 11:40Karthik ReddyKarthik ReddyRUSTrust-1.95.0Success53,745+0.09 RP
Oct 9, 2026 10:44Karthik ReddyKarthik ReddyRUSTrust-1.95.0Success53,810
Oct 9, 2026 10:18Karthik ReddyKarthik ReddyRUSTrust-1.95.0Success53,772
Oct 9, 2026 08:48Karthik ReddyKarthik ReddyRUSTrust-1.95.0Success53,783
Oct 9, 2026 08:26Karthik ReddyKarthik ReddyCPPclang++18.1.3Success53,910
Oct 9, 2026 08:17Karthik ReddyKarthik ReddyGOgo1.26.2Success53,935+0.03 RP
Oct 9, 2026 08:13Karthik ReddyKarthik ReddyZIG0.15.1Success53,735+0.19 RP
Oct 9, 2026 08:12Karthik ReddyKarthik ReddyRUSTrust-1.95.0Success54,089
Oct 9, 2026 07:22Karthik ReddyKarthik ReddyRUSTrust-1.95.0Success53,810
Oct 6, 2026 08:21janwwwjanwwwCPPg++14.2.0Success21,433,116+0.47 RP
Oct 2, 2026 21:34Karthik ReddyKarthik ReddyCPPclang++18.1.3Success53,621+187.15 RP
Oct 2, 2026 21:28Karthik ReddyKarthik ReddyCPPclang++18.1.3Error
Oct 2, 2026 13:33C21C21CPPclang++20.1.2Success68,086+146.87 RP
Sep 26, 2026 19:32Kevin HeaveyKevin HeaveyCSHARP9.0.18Success53,824+9.56 RP
Sep 26, 2026 19:10Kevin HeaveyKevin HeaveyGOgo1.26.2Success53,943+7.28 RP
Sep 26, 2026 19:09Kevin HeaveyKevin HeaveyZIG0.15.1Success53,791+7.50 RP
Sep 26, 2026 19:09Kevin HeaveyKevin HeaveyRUSTrust-1.95.0Success53,770+7.48 RP
Sep 25, 2026 21:20Kevin HeaveyKevin HeaveyCPPg++13.3.0Success53,810+1.02 RP
Sep 24, 2026 19:01Kevin HeaveyKevin HeaveyCPPg++13.3.0Success53,959+0.08 RP
Sep 24, 2026 19:01Kevin HeaveyKevin HeaveyCPPg++13.3.0Success53,970+0.92 RP
Sep 24, 2026 18:58Kevin HeaveyKevin HeaveyCPPg++13.3.0Error
Sep 24, 2026 18:56Kevin HeaveyKevin HeaveyCPPg++13.3.0Success54,105+190.87 RP
Sep 23, 2026 18:26Matthias GörgensMatthias GörgensCPPclang++19.1.1Success72,189+138.53 RP
Sep 20, 2026 16:35Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success55,991
Sep 20, 2026 15:20Andrew EpsteinAndrew EpsteinRUSTrust-1.95.0Success55,978+0.88 RP
Sep 20, 2026 15:17Andrew EpsteinAndrew EpsteinCSHARP9.0.15Success56,743+5.59 RP
Sep 20, 2026 15:16Andrew EpsteinAndrew EpsteinZIG0.15.1Success56,051+0.21 RP
Sep 20, 2026 15:15Andrew EpsteinAndrew EpsteinRUSTrust-1.95.0Success57,691
Sep 20, 2026 15:14Andrew EpsteinAndrew EpsteinGOgo1.26.2Success56,148+6.75 RP
Sep 20, 2026 15:12Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success56,029
Sep 20, 2026 15:07Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success56,064
Sep 20, 2026 15:05Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success56,797
Sep 20, 2026 15:03Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success1,784,691
Sep 20, 2026 15:00Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success56,589
Sep 20, 2026 14:57Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success1,847,670
Sep 20, 2026 14:54Andrew EpsteinAndrew EpsteinCPPclang++20.1.2Success56,697
Sep 20, 2026 14:46Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success55,932+5.62 RP
Sep 20, 2026 14:44Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success1,855,129
Sep 20, 2026 14:41Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success57,500+29.03 RP
Sep 20, 2026 14:39Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success910,872
Sep 19, 2026 13:37Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success383,589
Sep 19, 2026 13:27Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success91,667
Sep 19, 2026 13:23Andrew EpsteinAndrew EpsteinCPPg++14.2.0Success3,536,381
Sep 12, 2026 09:57Haha ExpertHaha ExpertCPPg++14.2.0Success67,856+0.05 RP
Sep 12, 2026 09:55Haha ExpertHaha ExpertCPPg++14.2.0Success68,405
Sep 12, 2026 09:52Haha ExpertHaha ExpertCPPg++14.2.0Success67,881+1.37 RP
Sep 12, 2026 09:50Haha ExpertHaha ExpertCPPg++14.2.0Success83,829
Sep 12, 2026 09:47Haha ExpertHaha ExpertCPPg++14.2.0Success68,516+17.17 RP
Sep 12, 2026 09:39Haha ExpertHaha ExpertCPPg++14.2.0Error
Sep 12, 2026 09:34Haha ExpertHaha ExpertCPPg++14.2.0Success85,978
Sep 12, 2026 09:30Haha ExpertHaha ExpertCPPg++14.2.0Success77,651+2.63 RP
Sep 12, 2026 09:27Haha ExpertHaha ExpertCPPg++14.2.0Success79,270+2.25 RP
Sep 12, 2026 09:25Haha ExpertHaha ExpertCPPg++14.2.0Success91,313
Sep 12, 2026 09:23Haha ExpertHaha ExpertCPPg++14.2.0Success80,710+14.46 RP