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:19Yuriy LyfenkoYuriy LyfenkoError
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:50028,434,5699,011,0002,002,0002,347,008expected "975556 ", got "974431 "
2Apr 20, 2026 23:50027,286,8329,058,0002,013,0002,351,104expected "975556 ", got "974255 "
3Apr 20, 2026 23:50030,345,4399,028,0002,006,0002,347,008expected "978427 ", got "977518 "
4May 22, 2021 16:203,45578,050,88311,055,21302,191,360
5May 22, 2021 16:193,51876,438,93211,257,43602,191,360
6May 22, 2021 16:193,52656,562,46511,283,08902,183,168
7May 22, 2021 16:203,52888,811,74511,289,76402,183,168
8May 22, 2021 16:193,52976,883,01211,294,01602,191,360
9May 22, 2021 16:203,53090,463,47611,295,60202,183,168
10May 22, 2021 16:353,54849,574,89311,352,97702,187,264
11May 22, 2021 16:353,56890,650,22311,418,61802,191,360
12May 22, 2021 16:353,61589,638,85611,567,94402,195,456