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 8, 2024 21:30Joad NacerJoad NacerScore: 4,853Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 21:304,81731,023,86714,387,0001,027,0002,519,040
2May 8, 2024 21:304,82137,041,47915,428,00002,523,136
3May 8, 2024 21:304,82543,039,52414,412,0001,029,0002,269,184
4May 8, 2024 21:304,83738,326,47614,447,0001,031,0002,519,040
5May 8, 2024 21:304,84336,903,90414,466,0001,033,0002,289,664
6May 8, 2024 21:304,85135,677,75014,489,0001,034,0002,273,280
7May 8, 2024 21:304,85338,859,13214,495,0001,035,0002,289,664
8May 8, 2024 21:304,87338,477,95314,553,0001,039,0002,265,088
9May 8, 2024 21:304,87336,478,71814,556,0001,039,0002,285,568
10May 8, 2024 21:305,03184,683,80516,097,93202,256,896
11May 8, 2024 21:305,07187,818,93716,228,38802,293,760
12May 8, 2024 21:305,07380,169,72816,234,52002,297,856