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 17:09Yuriy 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:50029,326,5139,202,0002,045,0002,342,912expected "976760 ", got "975822 "
2Apr 20, 2026 23:50029,629,8789,086,0002,019,0002,355,200expected "978574 ", got "978909 "
3Apr 20, 2026 23:50028,206,88710,875,000988,0002,322,432expected "975809 ", got "976296 "
4May 20, 2021 17:103,62562,779,92411,598,45102,187,264
5May 20, 2021 17:103,62671,220,62911,604,49202,191,360
6May 20, 2021 17:093,62957,773,95311,613,74602,195,456
7May 20, 2021 17:103,65855,898,96011,706,07302,183,168
8May 20, 2021 17:093,66381,416,98811,720,86002,191,360
9May 20, 2021 17:103,66586,245,32311,726,89402,183,168
10May 20, 2021 17:093,66772,687,80811,733,38002,195,456
11May 20, 2021 17:103,71253,001,52411,877,33302,195,456
12May 20, 2021 17:103,72765,530,60911,925,17702,187,264