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 2, 2024 22:56Drew GarciaDrew GarciaScore: 5,666Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 2, 2024 22:565,61344,664,35215,965,0001,995,0002,281,472
2Apr 2, 2024 22:565,63137,181,70616,016,0002,002,0002,281,472
3Apr 2, 2024 22:565,63647,159,05315,029,0003,005,0002,277,376
4Apr 2, 2024 22:565,63849,245,35017,040,0001,002,0002,281,472
5Apr 2, 2024 22:565,64343,873,72716,051,0002,006,0002,281,472
6Apr 2, 2024 22:565,65339,311,94417,085,0001,005,0002,273,280
7Apr 2, 2024 22:565,66647,832,38516,116,0002,014,0002,387,968
8Apr 2, 2024 22:565,67039,003,76517,137,0001,008,0002,281,472
9Apr 2, 2024 22:565,69546,528,22415,188,0003,037,0002,269,184
10Apr 2, 2024 22:565,94475,913,02919,019,57702,306,048
11Apr 2, 2024 22:565,94788,385,03219,030,58202,306,048
12Apr 2, 2024 22:565,99188,105,46219,170,92802,306,048