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 listOct 7, 2023 16:19Pavel ZagrebinPavel ZagrebinScore: 5,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 16:195,27332,127,19114,888,0001,985,0002,392,064
2Oct 7, 2023 16:195,27846,592,22814,903,0001,987,0002,387,968
3Oct 7, 2023 16:195,28143,754,75314,912,0001,988,0002,383,872
4Oct 7, 2023 16:195,28444,184,46416,909,00002,396,160
5Oct 7, 2023 16:195,28543,518,14814,922,0001,989,0002,527,232
6Oct 7, 2023 16:195,29942,329,44814,963,0001,995,0002,392,064
7Oct 7, 2023 16:195,30146,728,20915,966,000997,0002,265,088
8Oct 7, 2023 16:195,32032,938,41816,023,0001,001,0002,265,088
9Oct 7, 2023 16:195,32139,214,24916,025,0001,001,0002,392,064
10Oct 7, 2023 16:195,53661,246,16617,716,30002,277,376
11Oct 7, 2023 16:195,53888,996,67417,720,28502,285,568
12Oct 7, 2023 16:195,55471,908,53817,771,84102,285,568