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 listJul 2, 2026 16:07IlyaIlyaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 16:07020,977,82310,614,0001,065,0002,113,536expected "977969 ", got "782329 "
2Jul 2, 2026 16:07021,076,76610,669,0001,079,0002,113,536expected "976186 ", got "780328 "
3Jul 2, 2026 16:07021,024,33210,612,0001,067,0002,113,536expected "977157 ", got "781619 "