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 14:55Jack FrigaardJack FrigaardScore: 5,627Success
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 14:555,58243,812,14516,869,000992,0002,531,328
2Jan 2, 2023 14:555,59335,804,07816,902,000994,0002,269,184
3Jan 2, 2023 14:555,59535,246,40015,915,0001,989,0002,531,328
4Jan 2, 2023 14:555,59946,240,04716,863,0001,053,0002,285,568
5Jan 2, 2023 14:555,60934,040,66015,956,0001,994,0002,285,568
6Jan 2, 2023 14:555,62335,243,12616,994,000999,0002,371,584
7Jan 2, 2023 14:555,62749,280,66616,005,0002,000,0002,285,568
8Jan 2, 2023 14:555,63042,111,37717,015,0001,000,0002,285,568
9Jan 2, 2023 14:555,66437,322,33116,112,0002,014,0002,269,184
10Jan 2, 2023 14:555,78992,418,98818,523,55202,297,856
11Jan 2, 2023 14:555,84491,600,41518,701,48502,297,856
12Jan 2, 2023 14:555,864104,165,94618,764,65102,281,472