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 listJan 2, 2023 17:12Jack FrigaardJack FrigaardScore: 4,869Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 17:124,82338,808,26714,406,0001,029,0002,285,568
2Jan 2, 2023 17:124,82939,488,20214,423,0001,030,0002,531,328
3Jan 2, 2023 17:124,83031,604,97314,426,0001,030,0002,273,280
4Jan 2, 2023 17:124,84737,487,26715,509,00002,375,680
5Jan 2, 2023 17:124,84734,781,52914,477,0001,034,0002,527,232
6Jan 2, 2023 17:124,85831,823,26115,546,00002,285,568
7Jan 2, 2023 17:124,86932,556,28714,544,0001,038,0002,285,568
8Jan 2, 2023 17:124,87832,557,98214,570,0001,040,0002,273,280
9Jan 2, 2023 17:124,88643,936,16914,593,0001,042,0002,285,568
10Jan 2, 2023 17:125,09167,655,99116,291,66702,297,856
11Jan 2, 2023 17:125,10873,604,80316,344,67602,297,856
12Jan 2, 2023 17:125,32376,316,65717,034,22102,293,760