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:58Drew GarciaDrew GarciaScore: 5,643Success
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:585,61743,566,02316,977,000998,0002,269,184
2Apr 2, 2024 22:585,62334,962,27416,995,000999,0002,273,280
3Apr 2, 2024 22:585,62454,173,01814,997,0002,999,0002,281,472
4Apr 2, 2024 22:585,62448,457,45615,999,0001,999,0002,281,472
5Apr 2, 2024 22:585,62936,051,81316,013,0002,001,0002,281,472
6Apr 2, 2024 22:585,64143,146,86015,043,0003,008,0002,281,472
7Apr 2, 2024 22:585,64344,760,55117,055,0001,003,0002,289,664
8Apr 2, 2024 22:585,64939,375,47317,073,0001,004,0002,392,064
9Apr 2, 2024 22:585,70449,973,18316,224,0002,028,0002,277,376
10Apr 2, 2024 22:585,88369,413,67618,826,94002,179,072
11Apr 2, 2024 22:585,928102,669,94118,971,00702,301,952
12Apr 2, 2024 22:585,94181,916,34319,010,36402,179,072