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 16:34Jack FrigaardJack FrigaardScore: 4,876Success
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 16:344,84636,198,28015,507,00002,527,232
2Jan 2, 2023 16:344,84632,070,27414,475,0001,033,0002,527,232
3Jan 2, 2023 16:344,84833,616,26814,478,0001,034,0002,523,136
4Jan 2, 2023 16:344,86437,589,72915,566,00002,523,136
5Jan 2, 2023 16:344,86539,559,63314,531,0001,037,0002,285,568
6Jan 2, 2023 16:344,86839,754,71914,539,0001,038,0002,531,328
7Jan 2, 2023 16:344,87632,994,81714,562,0001,040,0002,273,280
8Jan 2, 2023 16:344,89342,589,22714,613,0001,043,0002,285,568
9Jan 2, 2023 16:344,89343,346,04515,659,00002,285,568
10Jan 2, 2023 16:345,10588,794,83216,336,12702,289,664
11Jan 2, 2023 16:345,10671,610,66916,338,67702,293,760
12Jan 2, 2023 16:345,13180,015,58716,420,40902,301,952