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:47Jack FrigaardJack FrigaardScore: 5,458Success
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:475,41138,288,27916,297,0001,018,0002,285,568
2Jan 2, 2023 14:475,41840,121,55815,299,0002,039,0002,273,280
3Jan 2, 2023 14:475,44339,558,78816,394,0001,024,0002,285,568
4Jan 2, 2023 14:475,45043,041,36315,389,0002,051,0002,269,184
5Jan 2, 2023 14:475,45140,595,11815,390,0002,052,0002,285,568
6Jan 2, 2023 14:475,45345,786,72816,425,0001,026,0002,285,568
7Jan 2, 2023 14:475,45839,173,99915,411,0002,054,0002,371,584
8Jan 2, 2023 14:475,48638,470,53516,523,0001,032,0002,523,136
9Jan 2, 2023 14:475,49640,750,83816,554,0001,034,0002,285,568
10Jan 2, 2023 14:475,65768,303,84518,101,51602,306,048
11Jan 2, 2023 14:475,69169,729,73218,209,62902,297,856
12Jan 2, 2023 14:475,70686,809,18018,257,92802,293,760