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:55Andrey TsvetkovAndrey TsvetkovError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:51zielaj94.38RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:51026,225,9639,095,0002,021,0002,359,296expected "978381 ", got "978305 "
2Apr 20, 2026 23:51025,668,2359,147,0002,032,0002,363,392expected "975505 ", got "976007 "
3Apr 20, 2026 23:51032,403,6189,029,0002,006,0002,355,200expected "976303 ", got "976577 "
4May 23, 2021 09:553,69978,705,70811,837,69302,232,320
5May 23, 2021 09:553,70754,316,72111,861,06702,240,512
6May 23, 2021 09:553,75975,865,80212,030,30002,232,320