Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listOct 5, 2026 03:37FrederickFrederickError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 17:59Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 17:59025,626,03015,664,0001,042,0002,113,536expected "158790092 ", got "158781900 "
2Oct 5, 2026 17:59025,587,40415,686,0001,048,0002,113,536expected "158790736 ", got "158782544 "
3Oct 5, 2026 17:59025,642,72615,746,0001,054,0002,113,536expected "158790424 ", got "158782232 "
4Oct 5, 2026 03:375,20925,507,43715,662,0001,009,0002,113,536
5Oct 5, 2026 03:375,21126,971,06615,645,0001,033,0002,113,536
6Oct 5, 2026 03:375,21525,589,74115,660,0001,029,0002,113,536
7Oct 5, 2026 03:375,21725,531,12915,648,0001,048,0002,113,536
8Oct 5, 2026 03:375,22025,316,17415,674,0001,031,0002,113,536
9Oct 5, 2026 03:375,22025,575,82015,673,0001,031,0002,113,536
10Oct 5, 2026 03:375,23825,636,83115,736,0001,026,0002,113,536
11Oct 5, 2026 03:375,24525,608,10215,736,0001,051,0002,113,536
12Oct 5, 2026 03:375,25525,654,64815,771,0001,046,0002,113,536