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 listOct 11, 2022 15:54Kenneth MaplesKenneth MaplesScore: 5,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2022 15:545,08837,124,13915,264,0001,017,0002,383,872
2Oct 11, 2022 15:545,09433,134,20615,283,0001,018,0002,392,064
3Oct 11, 2022 15:545,09443,321,52115,284,0001,018,0002,387,968
4Oct 11, 2022 15:545,10635,751,09815,317,0001,021,0002,265,088
5Oct 11, 2022 15:545,10836,344,70715,326,0001,021,0002,387,968
6Oct 11, 2022 15:545,12436,397,61715,374,0001,024,0002,396,160
7Oct 11, 2022 15:545,13839,302,61215,414,0001,027,0002,260,992
8Oct 11, 2022 15:545,14839,405,80716,475,00002,392,064
9Oct 11, 2022 15:545,15835,983,43015,476,0001,031,0002,392,064
10Oct 11, 2022 15:545,28479,261,79416,908,51702,240,512
11Oct 11, 2022 15:545,29660,712,61516,947,85702,269,184
12Oct 11, 2022 15:545,33859,309,90217,080,17602,273,280