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 17, 2023 20:44Martin StensgårdMartin StensgårdScore: 5,480Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2023 20:445,43332,422,49916,362,0001,022,0002,269,184
2May 17, 2023 20:445,44141,041,94616,388,0001,024,0002,383,872
3May 17, 2023 20:445,44347,230,85216,395,0001,024,0002,269,184
4May 17, 2023 20:445,45243,129,63417,447,00002,269,184
5May 17, 2023 20:445,45743,458,90517,463,00002,531,328
6May 17, 2023 20:445,46235,006,79217,477,00002,269,184
7May 17, 2023 20:445,48039,731,84216,505,0001,031,0002,371,584
8May 17, 2023 20:445,49632,319,39116,553,0001,034,0002,383,872
9May 17, 2023 20:445,50645,360,14216,582,0001,036,0002,383,872
10May 17, 2023 20:445,61675,297,20217,970,36902,260,992
11May 17, 2023 20:445,61894,918,18117,976,43802,269,184
12May 17, 2023 20:445,64656,100,53618,066,65702,256,896