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 listOct 29, 2026 20:04C21C21Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 29, 2026 20:05028,990,76916,514,0001,042,0002,113,536expected "977818 ", got "977817 "
2Oct 29, 2026 20:055,42328,245,71416,325,0001,030,0002,113,536
3Oct 29, 2026 20:055,47529,041,12116,350,0001,171,0002,113,536