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 listApr 27, 2025 15:18vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 09:41Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 09:43020,782,82512,782,00002,113,536expected "25000000 ", got "24991808 "
2Jul 4, 2026 09:43020,657,09712,734,00002,113,536expected "25000000 ", got "24991808 "
3Jul 4, 2026 09:43020,692,93912,759,00002,113,536expected "25000000 ", got "24991808 "
4Apr 27, 2025 15:184,08529,447,92312,066,0001,005,0002,502,656
5Apr 27, 2025 15:184,11830,234,66911,296,0001,882,0002,265,088
6Apr 27, 2025 15:184,12026,702,53812,171,0001,014,0002,490,368
7Apr 27, 2025 15:184,14725,580,71213,269,00002,273,280
8Apr 27, 2025 15:184,16325,595,15113,322,00002,494,464
9Apr 27, 2025 15:184,16827,562,54713,336,00002,273,280
10Apr 27, 2025 15:184,17029,233,13913,345,00002,273,280
11Apr 27, 2025 15:184,17429,522,41813,357,00002,273,280
12Apr 27, 2025 15:184,19843,950,99713,435,00002,490,368