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 20, 2021 02:54Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:47zielaj10.00RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:47028,643,3456,964,0002,984,0002,355,200expected "977143 ", got "979252 "
2Apr 20, 2026 23:47025,625,3219,892,00002,371,584expected "978488 ", got "977586 "
3Apr 20, 2026 23:47028,303,2558,149,0002,037,0002,252,800expected "974591 ", got "974670 "
4May 20, 2021 02:543,08858,848,6159,881,75102,256,896
5May 20, 2021 02:543,10153,114,4689,921,68202,256,896
6May 20, 2021 02:543,11547,056,1759,969,05302,256,896