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 15:49Victor 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 15:50020,956,80413,010,000024,576expected "976058 ", got "975802 "stderr
2Jul 9, 2026 15:504,05020,979,73912,963,000024,576stderr
3Jul 9, 2026 15:504,05120,923,17012,966,000024,576stderr
4Jul 9, 2026 15:504,05220,960,28912,968,000024,576stderr
5Jul 9, 2026 15:504,05921,009,09012,989,000024,576stderr
6Jul 9, 2026 15:504,05920,978,01012,991,000024,576stderr
7Jul 9, 2026 15:504,07021,025,61713,026,000024,576stderr
8Jul 9, 2026 15:504,07021,009,77913,025,000024,576stderr
9Jul 9, 2026 15:504,07420,991,95013,039,000024,576stderr