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 22, 2021 16:15Yuriy 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:47026,454,0788,516,0001,064,0002,363,392expected "976810 ", got "975954 "
2Apr 20, 2026 23:47027,469,8998,485,0001,060,0002,355,200expected "975967 ", got "977812 "
3Apr 20, 2026 23:47032,444,3738,509,0001,063,0002,359,296expected "976157 ", got "976016 "
4May 22, 2021 16:152,99161,055,1519,571,59702,260,992
5May 22, 2021 16:153,05851,130,3879,784,92502,260,992
6May 22, 2021 16:153,08186,087,8769,857,60202,273,280