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:44IlyaIlyaError
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:45023,011,54312,597,0001,059,0002,113,536expected "976580 ", got "78358078 "
2Jul 2, 2026 16:45022,982,77112,629,0001,008,0002,113,536expected "976400 ", got "78377750 "
3Jul 2, 2026 16:45022,880,72712,554,0001,015,0002,113,536expected "977006 ", got "78204918 "