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,224,35512,797,0001,054,0002,113,536expected "975829 ", got "98680101 "
2Jul 2, 2026 16:59023,284,45812,868,0001,071,0002,113,536expected "975281 ", got "98581277 "
3Jul 2, 2026 16:59023,283,47212,824,0001,072,0002,113,536expected "975357 ", got "98375335 "