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 18:58Joad NacerJoad NacerScore: 5,274Success
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 18:585,21942,894,16415,659,0001,043,0002,527,232
2Apr 17, 2024 18:585,22133,962,50815,662,0001,044,0002,265,088
3Apr 17, 2024 18:585,22237,202,96115,666,0001,044,0002,265,088
4Apr 17, 2024 18:585,26835,289,11414,876,0001,983,0002,289,664
5Apr 17, 2024 18:585,27153,666,95115,876,000992,0002,289,664
6Apr 17, 2024 18:585,27334,480,28814,890,0001,985,0002,269,184
7Apr 17, 2024 18:585,27447,087,57915,886,000992,0002,289,664
8Apr 17, 2024 18:585,27433,702,00215,886,000992,0002,289,664
9Apr 17, 2024 18:585,28545,634,70014,923,0001,989,0002,289,664
10Apr 17, 2024 18:585,47083,064,40017,504,52402,301,952
11Apr 17, 2024 18:585,47278,504,27717,510,15902,174,976
12Apr 17, 2024 18:585,49680,758,52517,585,79602,174,976