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:33Jack FrigaardJack FrigaardScore: 5,898Success
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:335,84046,693,87117,650,0001,038,0002,285,568
2Jan 2, 2023 17:335,84242,752,56718,695,00002,273,280
3Jan 2, 2023 17:335,84944,419,33317,677,0001,039,0002,285,568
4Jan 2, 2023 17:335,89348,174,20417,867,000992,0002,379,776
5Jan 2, 2023 17:335,89446,015,10417,870,000992,0002,527,232
6Jan 2, 2023 17:335,89745,608,08517,876,000993,0002,269,184
7Jan 2, 2023 17:335,89846,039,32216,887,0001,986,0002,285,568
8Jan 2, 2023 17:335,90445,393,57016,904,0001,988,0002,531,328
9Jan 2, 2023 17:335,92241,221,01416,956,0001,994,0002,269,184
10Jan 2, 2023 17:336,00986,758,28719,228,86302,289,664
11Jan 2, 2023 17:336,057107,322,63619,381,75302,297,856
12Jan 2, 2023 17:336,07085,228,05719,424,92202,297,856