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:59IlyaIlyaError
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:59023,103,35712,613,0001,098,0002,113,536expected "977314 ", got "88787634 "
2Jul 2, 2026 16:59023,036,25712,599,0001,071,0002,113,536expected "976934 ", got "88747820 "
3Jul 2, 2026 16:59022,971,36712,570,0001,066,0002,113,536expected "978684 ", got "88707096 "