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 9, 2026 16:15Victor 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
1Jul 9, 2026 16:15021,734,21413,753,000024,576expected "977463 ", got "977207 "stderr
2Jul 9, 2026 16:154,28821,663,05113,724,000024,576stderr
3Jul 9, 2026 16:154,29121,790,43813,734,000024,576stderr
4Jul 9, 2026 16:154,29321,828,91313,739,000024,576stderr
5Jul 9, 2026 16:154,29721,716,96913,752,000024,576stderr
6Jul 9, 2026 16:154,29821,829,09513,756,000024,576stderr
7Jul 9, 2026 16:154,30221,736,93613,768,000024,576stderr
8Jul 9, 2026 16:154,30623,173,09013,781,000024,576stderr
9Jul 9, 2026 16:154,31021,760,54813,792,000024,576stderr