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, 2026 21:28Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 21:28053,835,04830,888,0001,992,0002,387,968expected "978085 ", got "978044 "
2Apr 27, 2026 21:28048,800,07930,875,0001,991,0002,379,776expected "976843 ", got "976564 "
3Apr 27, 2026 21:28046,336,25731,006,0002,000,0002,453,504expected "975927 ", got "976895 "