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:51Jack FrigaardJack FrigaardScore: 4,867Success
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:514,82637,405,69114,413,0001,029,0002,273,280
2Jan 2, 2023 16:514,82733,766,20514,418,0001,029,0002,523,136
3Jan 2, 2023 16:514,83935,314,81914,453,0001,032,0002,285,568
4Jan 2, 2023 16:514,84031,476,28215,488,00002,285,568
5Jan 2, 2023 16:514,85135,316,50214,488,0001,034,0002,269,184
6Jan 2, 2023 16:514,85837,433,94814,508,0001,036,0002,285,568
7Jan 2, 2023 16:514,86738,502,81214,536,0001,038,0002,269,184
8Jan 2, 2023 16:514,87034,187,99514,546,0001,039,0002,285,568
9Jan 2, 2023 16:514,90244,514,32014,641,0001,045,0002,285,568
10Jan 2, 2023 16:515,07478,446,14316,237,74602,301,952
11Jan 2, 2023 16:515,08190,551,02116,259,15602,297,856
12Jan 2, 2023 16:515,10878,648,98216,345,39002,293,760