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 09:04Dmitry 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 23, 2021 09:0400000Wrong answer: expected "980080 ", got "980081 "
2May 23, 2021 09:0500000Wrong answer: expected "980274 ", got "980275 "
3May 23, 2021 09:0500000Wrong answer: expected "980020 ", got "980021 "
4May 23, 2021 09:0600000Wrong answer: expected "980661 ", got "980663 "
5May 23, 2021 10:2200000Wrong answer: expected "980306 ", got "979740 "
6May 23, 2021 09:073,18169,543,88910,179,78502,256,896
7May 23, 2021 09:043,18851,428,29310,201,56202,260,992
8May 23, 2021 09:073,19248,840,28510,215,86502,260,992
9May 23, 2021 09:043,21066,891,33810,273,43402,260,992
10May 23, 2021 09:073,21157,037,22210,274,34602,260,992
11May 23, 2021 09:043,23447,152,27810,347,73902,256,896