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 listMar 24, 2024 20:30IhebIhebScore: 5,525Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 24, 2024 20:305,50543,461,28116,581,0001,036,0002,265,088
2Mar 24, 2024 20:305,51842,956,41717,656,00002,502,656
3Mar 24, 2024 20:305,51846,875,42217,656,00002,392,064
4Mar 24, 2024 20:305,52148,231,92316,627,0001,039,0002,396,160
5Mar 24, 2024 20:305,52146,245,53616,628,0001,039,0002,265,088
6Mar 24, 2024 20:305,52434,441,66817,676,00002,527,232
7Mar 24, 2024 20:305,52536,627,75016,640,0001,040,0002,265,088
8Mar 24, 2024 20:305,52545,527,46117,681,00002,392,064
9Mar 24, 2024 20:305,52634,961,54416,642,0001,040,0002,392,064
10Mar 24, 2024 20:305,72494,247,38818,317,18102,285,568
11Mar 24, 2024 20:305,74871,086,12318,394,16602,285,568
12Mar 24, 2024 20:305,75799,587,78618,423,75402,244,608