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,477Success
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,44240,946,01115,367,0002,048,0002,285,568
2Jan 2, 2023 14:445,46536,293,35017,489,00002,387,968
3Jan 2, 2023 14:445,46744,418,04416,466,0001,029,0002,371,584
4Jan 2, 2023 14:445,46846,794,68217,497,00002,285,568
5Jan 2, 2023 14:445,46843,662,99116,468,0001,029,0002,285,568
6Jan 2, 2023 14:445,46943,312,67816,472,0001,029,0002,285,568
7Jan 2, 2023 14:445,47740,052,02116,495,0001,030,0002,285,568
8Jan 2, 2023 14:445,48140,149,87516,509,0001,031,0002,527,232
9Jan 2, 2023 14:445,48744,994,95816,525,0001,032,0002,285,568
10Jan 2, 2023 14:445,66986,227,94618,140,43802,252,800
11Jan 2, 2023 14:445,70159,378,83318,243,89202,306,048
12Jan 2, 2023 14:445,71071,914,52318,273,09202,293,760