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:44Jack FrigaardJack FrigaardScore: 5,490Success
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:445,45640,041,47216,432,0001,027,0002,285,568
2Jan 2, 2023 14:445,46037,864,73615,417,0002,055,0002,285,568
3Jan 2, 2023 14:445,46445,338,99815,429,0002,057,0002,285,568
4Jan 2, 2023 14:445,46536,995,13716,459,0001,028,0002,527,232
5Jan 2, 2023 14:445,46540,269,29716,461,0001,028,0002,285,568
6Jan 2, 2023 14:445,48339,741,86516,515,0001,032,0002,379,776
7Jan 2, 2023 14:445,49040,633,52216,536,0001,033,0002,535,424
8Jan 2, 2023 14:445,50433,643,00716,578,0001,036,0002,285,568
9Jan 2, 2023 14:445,52451,557,71216,638,0001,039,0002,285,568
10Jan 2, 2023 14:445,676101,035,00618,164,52702,301,952
11Jan 2, 2023 14:445,67882,910,35318,169,10402,297,856
12Jan 2, 2023 14:445,71187,448,06518,275,63802,297,856