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 17:35Jack FrigaardJack FrigaardScore: 5,421Success
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 17:355,39542,173,97815,234,0002,031,0002,523,136
2Jan 2, 2023 17:355,39739,487,47115,238,0002,031,0002,285,568
3Jan 2, 2023 17:355,40434,580,36915,258,0002,034,0002,371,584
4Jan 2, 2023 17:355,41333,345,57515,283,0002,037,0002,531,328
5Jan 2, 2023 17:355,41438,854,53715,287,0002,038,0002,285,568
6Jan 2, 2023 17:355,41637,172,73315,293,0002,039,0002,285,568
7Jan 2, 2023 17:355,42137,167,58715,306,0002,040,0002,269,184
8Jan 2, 2023 17:355,43145,260,71516,358,0001,022,0002,277,376
9Jan 2, 2023 17:355,45339,963,74316,424,0001,026,0002,523,136
10Jan 2, 2023 17:355,57677,218,99217,843,99602,306,048
11Jan 2, 2023 17:355,58086,172,82017,854,75302,297,856
12Jan 2, 2023 17:355,59782,930,62617,910,30302,289,664