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 17, 2024 13:43Drew GarciaDrew GarciaScore: 5,186Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 13:435,14337,423,22616,457,00002,269,184
2Apr 17, 2024 13:435,15139,312,56315,452,0001,030,0002,404,352
3Apr 17, 2024 13:435,16235,414,51215,485,0001,032,0002,392,064
4Apr 17, 2024 13:435,18447,468,08915,552,0001,036,0002,273,280
5Apr 17, 2024 13:435,18436,558,36313,478,0003,110,0002,273,280
6Apr 17, 2024 13:435,18631,447,72915,557,0001,037,0002,400,256
7Apr 17, 2024 13:435,18632,185,10214,521,0002,074,0002,269,184
8Apr 17, 2024 13:435,19542,389,49214,547,0002,078,0002,400,256
9Apr 17, 2024 13:435,21439,426,69316,686,00002,269,184
10Apr 17, 2024 13:435,50996,203,81817,628,35202,301,952
11Apr 17, 2024 13:435,51997,699,18017,659,78302,211,840
12Apr 17, 2024 13:435,55085,035,32717,758,70702,293,760