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 listAug 9, 2023 20:48Mark AlievMark AlievError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 9, 2023 20:4600000Error: Exit with code 2: fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x2 addr=0x7fd5c8021000 pc=0x556d3d7d08d2] runtime stack: runtime.throw({0x556d3d7d9e96?, 0x556d3d8e52c8?}) /tmp/go1.20.7/go...stderr
2Aug 9, 2023 20:4880,742315,535,164258,375,85102,297,856
3Aug 9, 2023 20:4880,753310,940,193258,410,26902,285,568
4Aug 9, 2023 20:4881,127322,615,074259,606,70702,285,568