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 21:13Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 05:10Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 05:10021,091,59712,052,0001,092,0002,113,536expected "25000000 ", got "538112 "
2Jul 4, 2026 05:10020,908,53412,060,0001,089,0002,113,536expected "25000000 ", got "538112 "
3Jul 4, 2026 05:10020,951,41712,054,0001,123,0002,113,536expected "25000000 ", got "538112 "
4Jun 30, 2026 21:144,09721,004,06912,042,0001,070,0002,113,536
5Jun 30, 2026 21:144,10220,773,77012,076,0001,052,0002,113,536
6Jun 30, 2026 21:144,10520,992,58712,041,0001,096,0002,113,536
7Jun 30, 2026 21:144,10520,779,56412,077,0001,062,0002,113,536
8Jun 30, 2026 21:144,10922,326,81312,146,0001,004,0002,113,536
9Jun 30, 2026 21:144,11021,006,59512,064,0001,089,0002,113,536
10Jun 30, 2026 21:144,11221,096,98512,056,0001,103,0002,113,536
11Jun 30, 2026 21:144,11321,837,22212,065,0001,099,0002,113,536
12Jun 30, 2026 21:144,12421,121,74112,082,0001,115,0002,113,536