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 23, 2021 10:01Andrey TsvetkovAndrey TsvetkovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2021 10:1300000Wrong answer: expected "980303 ", got "979879 "
2May 23, 2021 10:013,57961,932,58611,453,28602,228,224
3May 23, 2021 10:013,58059,635,18111,457,14202,240,512
4May 23, 2021 10:033,58478,655,98411,470,39402,224,128
5May 23, 2021 10:033,59657,974,60611,507,27602,224,128
6May 23, 2021 10:013,65084,773,43811,681,33502,232,320
7May 23, 2021 10:033,69481,474,74511,819,86602,232,320