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 21:56Jack FrigaardJack FrigaardScore: 4,956Success
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 21:564,87738,920,65715,607,00002,285,568
2Jan 2, 2023 21:564,88736,312,35814,596,0001,042,0002,269,184
3Jan 2, 2023 21:564,89843,231,13914,630,0001,045,0002,285,568
4Jan 2, 2023 21:564,90533,340,05215,695,00002,367,488
5Jan 2, 2023 21:564,90745,487,49014,656,0001,046,0002,277,376
6Jan 2, 2023 21:564,91642,090,18214,682,0001,048,0002,273,280
7Jan 2, 2023 21:564,95647,450,58014,868,000991,0002,285,568
8Jan 2, 2023 21:564,95641,738,36713,877,0001,982,0002,514,944
9Jan 2, 2023 21:564,96544,120,83513,902,0001,986,0002,285,568
10Jan 2, 2023 21:565,153102,416,64216,490,64402,297,856
11Jan 2, 2023 21:565,16474,845,47916,525,08202,301,952
12Jan 2, 2023 21:565,172101,025,55916,550,75202,293,760