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

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:50zielaj10.00RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:50027,125,1009,501,0001,055,0002,347,008expected "977345 ", got "976017 "
2Apr 20, 2026 23:50028,095,6169,550,0001,061,0002,338,816expected "978192 ", got "977633 "
3Apr 20, 2026 23:50028,952,4029,533,0001,059,0002,355,200expected "975448 ", got "974704 "
4May 23, 2021 09:583,57785,610,39011,445,60402,240,512
5May 23, 2021 09:583,61382,471,85611,562,68702,236,416
6May 23, 2021 09:583,63478,324,98411,629,53602,228,224