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 listJun 30, 2026 20:16Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 04:34Victor Mercklé10.03CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 04:34020,758,33312,769,00002,113,536expected "25000000 ", got "538112 "
2Jul 4, 2026 04:34020,504,67512,779,00002,113,536expected "25000000 ", got "538112 "
3Jul 4, 2026 04:34020,539,73812,823,00002,113,536expected "25000000 ", got "538112 "
4Jun 30, 2026 20:173,98320,394,19912,747,00002,113,536
5Jun 30, 2026 20:173,99020,431,15212,770,00002,113,536
6Jun 30, 2026 20:173,99220,767,10612,776,00002,113,536
7Jun 30, 2026 20:173,99520,484,84612,786,00002,113,536
8Jun 30, 2026 20:173,99720,495,44912,791,00002,113,536
9Jun 30, 2026 20:174,00020,457,88612,803,00002,113,536
10Jun 30, 2026 20:174,00120,489,19412,804,00002,113,536
11Jun 30, 2026 20:174,00420,503,14912,814,00002,113,536
12Jun 30, 2026 20:174,00520,513,05312,818,00002,113,536