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 listApr 17, 2024 18:45Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 18:4500000Error: expected "975940 ", got "975938 "
2Apr 17, 2024 18:4500000Error: expected "975016 ", got "975015 "
3Apr 17, 2024 18:4600000Error: expected "976762 ", got "976761 "
4Apr 17, 2024 18:4600000Error: expected "976692 ", got "976691 "
5Apr 17, 2024 18:465,09083,652,93016,287,29902,301,952
6Apr 17, 2024 18:465,10978,445,45316,348,23902,306,048
7Apr 17, 2024 18:465,11289,875,10716,359,53202,174,976