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 28, 2021 20:52Dmitry DolgopolovDmitry DolgopolovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2021 20:5200000Wrong answer: expected "978034 ", got "978032 "
2May 28, 2021 20:5200000Wrong answer: expected "976786 ", got "976785 "
3May 28, 2021 20:5500000Wrong answer: expected "975838 ", got "975836 "
4May 28, 2021 20:555,25044,233,77716,799,34702,207,744
5May 28, 2021 20:555,26489,577,24416,844,08602,187,264
6May 28, 2021 20:555,26479,808,55616,843,60302,195,456