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 listMay 29, 2021 00:58Egor SergeevEgor SergeevError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2021 00:5800000Wrong answer: expected "976152 ", got "976151 "
2May 29, 2021 00:5900000Wrong answer: expected "977541 ", got "977540 "
3May 29, 2021 00:5900000Wrong answer: expected "977061 ", got "977060 "
4May 29, 2021 01:0000000Wrong answer: expected "976752 ", got "976751 "
5May 29, 2021 01:0200000Wrong answer: expected "977482 ", got "977481 "
6May 29, 2021 01:0300000Wrong answer: expected "977609 ", got "977608 "