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 20, 2024 18:09AnSaAnSaScore: 5,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2024 18:095,21338,443,99915,639,0001,042,0002,281,472
2Jan 20, 2024 18:095,26143,001,53615,846,000990,0002,281,472
3Jan 20, 2024 18:095,26445,039,88514,863,0001,981,0002,281,472
4Jan 20, 2024 18:095,27140,685,65415,875,000992,0002,396,160
5Jan 20, 2024 18:095,27134,388,59115,876,000992,0002,392,064
6Jan 20, 2024 18:095,27241,800,34115,877,000992,0002,396,160
7Jan 20, 2024 18:095,27344,422,34815,883,000992,0002,281,472
8Jan 20, 2024 18:095,27542,758,77415,887,000992,0002,400,256
9Jan 20, 2024 18:095,28137,081,90915,905,000994,0002,281,472
10Jan 20, 2024 18:095,45873,219,92517,466,90002,293,760
11Jan 20, 2024 18:095,45960,434,87517,468,67602,285,568
12Jan 20, 2024 18:095,49593,554,50017,584,92002,277,376