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 listJul 7, 2021 19:15Yuriy LyfenkoYuriy LyfenkoScore: 5,242Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2021 19:155,179549,585,12315,537,0001,035,0002,285,568
2Jul 7, 2021 19:155,191549,692,24715,574,0001,038,0002,289,664
3Jul 7, 2021 19:155,192543,922,74615,575,0001,038,0002,293,760
4Jul 7, 2021 19:155,221540,942,07216,708,00002,277,376
5Jul 7, 2021 19:155,232543,690,13914,772,0001,969,0002,285,568
6Jul 7, 2021 19:155,240543,585,84215,783,000986,0002,285,568
7Jul 7, 2021 19:155,242545,545,62615,788,000986,0002,293,760
8Jul 7, 2021 19:155,243546,661,92715,791,000986,0002,285,568
9Jul 7, 2021 19:155,266541,464,05214,870,0001,982,0002,289,664
10Jul 7, 2021 19:155,345580,991,91017,102,83502,297,856
11Jul 7, 2021 19:155,363568,338,12517,160,01402,252,800
12Jul 7, 2021 19:155,387575,273,51917,238,95502,256,896