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:46Drew GarciaDrew GarciaScore: 5,738Success
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:465,61239,059,79116,960,000997,0002,281,472
2Apr 2, 2024 22:465,62243,819,00016,992,000999,0002,273,280
3Apr 2, 2024 22:465,62442,963,35315,999,0001,999,0002,273,280
4Apr 2, 2024 22:465,65347,808,64915,074,0003,014,0002,281,472
5Apr 2, 2024 22:465,66344,637,76016,109,0002,013,0002,273,280
6Apr 2, 2024 22:465,70352,246,24416,221,0002,027,0002,281,472
7Apr 2, 2024 22:465,73845,267,60216,321,0002,040,0002,281,472
8Apr 2, 2024 22:465,73942,911,23316,324,0002,040,0002,281,472
9Apr 2, 2024 22:465,77840,606,18716,436,0002,054,0002,281,472
10Apr 2, 2024 22:465,88491,470,93318,828,43002,301,952
11Apr 2, 2024 22:465,91263,807,05518,919,24502,297,856
12Apr 2, 2024 22:465,92392,916,05818,952,53802,306,048